take checksum in account to recognize quorum changes

This commit is contained in:
Roberto De Ioris
2012-12-31 09:23:04 +01:00
parent 7b3859b484
commit 2216aafcf1
+5 -1
View File
@@ -231,7 +231,11 @@ static void legions_check_nodes_step2() {
}
// calculate the checksum
ul->checksum = uwsgi_legion_checksum(ul);
uint64_t new_checksum = uwsgi_legion_checksum(ul);
if (new_checksum != ul->checksum) {
ul->changed = 1;
}
ul->checksum = new_checksum;
// ... ok let's see if all of the nodes agree on the lord
// ... but first check if i am not alone...