[Sheepdog] [PATCH 5/9] sheep: write the previous epoch log only when epoch is incremented

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sat Jan 1 20:53:16 CET 2011


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/group.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sheep/group.c b/sheep/group.c
index 5516a19..65a8b65 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -579,7 +579,7 @@ static void update_cluster_info(struct join_message *msg)
 	sys->join_finished = 1;
 
 	eprintf("system status = %d, epoch = %d\n", msg->cluster_status, sys->epoch);
-	if (msg->cluster_status == SD_STATUS_OK) {
+	if (msg->cluster_status == SD_STATUS_OK && msg->inc_epoch) {
 		nr_nodes = get_ordered_sd_node_list(entry);
 
 		dprintf("update epoch, %d, %d\n", sys->epoch, nr_nodes);
-- 
1.5.6.5




More information about the sheepdog mailing list