projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic changes
[invirt/third/libt4.git]
/
paxos_protocol.h
diff --git
a/paxos_protocol.h
b/paxos_protocol.h
index
8f8f816
..
3e1fbcd
100644
(file)
--- 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 {
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;
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<node_t>;
};
using node_t = string;
using nodes_t = std::vector<node_t>;