[Sheepdog] [PATCH] collie: receive cluster creation time when node joins

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Wed May 12 03:58:53 CEST 2010


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

diff --git a/collie/group.c b/collie/group.c
index 228016b..349ce9a 100644
--- a/collie/group.c
+++ b/collie/group.c
@@ -488,6 +488,7 @@ static void join(struct join_message *msg)
 					 msg->epoch, &msg->cluster_status);
 	msg->nr_sobjs = sys->nr_sobjs;
 	msg->epoch = sys->epoch;
+	msg->ctime = get_cluster_ctime();
 	msg->nr_nodes = 0;
 	list_for_each_entry(node, &sys->sd_node_list, list) {
 		msg->nodes[msg->nr_nodes].nodeid = node->nodeid;
@@ -642,6 +643,7 @@ out:
 
 		get_vdi_bitmap_from_all();
 		set_global_nr_copies(sys->nr_sobjs);
+		set_cluster_ctime(msg->ctime);
 	}
 
 	print_node_list(&sys->sd_node_list);
-- 
1.5.6.5




More information about the sheepdog mailing list