Fix segfault and working first implem
This commit is contained in:
1 parent
ea40db0fea
commit
36ebbcb00f
13 files changed
+13
-1
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@@ -82,7 +82,7 @@ namespace paxos
|
|||||||
void Legislator::receive_last_vote(Message message)
|
void Legislator::receive_last_vote(Message message)
|
||||||
{
|
{
|
||||||
std::string ballot_str = *message.get_header("ballot");
|
std::string ballot_str = *message.get_header("ballot");
|
||||||
std::string vote_ballot_id_str = *message.get_header("vote");
|
std::string vote_ballot_id_str = *message.get_header("vote_ballot_id");
|
||||||
std::string sender = *message.get_header("sender");
|
std::string sender = *message.get_header("sender");
|
||||||
log(config_.name + " has received a LastVote("
|
log(config_.name + " has received a LastVote("
|
||||||
+ ballot_str + ", " + vote_ballot_id_str
|
+ ballot_str + ", " + vote_ballot_id_str
|
||||||
|
|||||||