Fix segfault and working first implem

This commit is contained in:
juju committed 2020-05-06 00:33:09 +02:00
1 parent ea40db0fea
commit 36ebbcb00f
13 files changed
+13 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
0
+1
View File
@@ -0,0 +1 @@
1
+1
View File
@@ -0,0 +1 @@
0
+1
View File
@@ -0,0 +1 @@
0
+1
View File
@@ -0,0 +1 @@
0
+1
View File
@@ -0,0 +1 @@
1
+1
View File
@@ -0,0 +1 @@
0
+1
View File
@@ -0,0 +1 @@
1
+1
View File
@@ -0,0 +1 @@
0
+1
View File
@@ -0,0 +1 @@
1
+1
View File
@@ -0,0 +1 @@
0
+1
View File
@@ -0,0 +1 @@
1
+1 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.