X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/c279db4240a3a3c30f069ab9dea8055cf94280da..5224670fe4e903bd507eabd486f8723353893bfa:/paxos_protocol.h diff --git a/paxos_protocol.h b/paxos_protocol.h index 8f8f816..3e1fbcd 100644 --- a/paxos_protocol.h +++ b/paxos_protocol.h @@ -15,12 +15,11 @@ struct prop_t { namespace paxos_protocol { enum status : rpc_protocol::status { OK, ERR }; struct prepareres { - bool oldinstance; - bool accept; + enum { reject, oldinstance, accept } type; prop_t n_a; string v_a; - MEMBERS(oldinstance, accept, n_a, v_a) + MEMBERS(type, n_a, v_a) }; using node_t = string; using nodes_t = std::vector;