mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
take checksum in account to recognize quorum changes
This commit is contained in:
+5
-1
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user