From 2216aafcf1fcae42634167a9d9fc95e867f9b058 Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Mon, 31 Dec 2012 09:23:04 +0100 Subject: [PATCH] take checksum in account to recognize quorum changes --- core/legion.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/legion.c b/core/legion.c index 75d663af..62d61a8e 100644 --- a/core/legion.c +++ b/core/legion.c @@ -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...