From a29aec5fb2c6f6dd1d8e24049c282353c7f5db0f Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 31 Aug 2010 00:59:47 +0000 Subject: mgmt/glusterd: Update store on start/stop volume Signed-off-by: Vijay Bellur Signed-off-by: Vijay Bellur BUG: 1480 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1480 --- xlators/mgmt/glusterd/src/glusterd-store.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index ee47696da..22bb1a611 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -1031,18 +1031,17 @@ glusterd_store_update_volume (glusterd_volinfo_t *volinfo) if (ret) goto out; - snprintf (buf, sizeof (buf), "%d", volinfo->port); + snprintf (buf, sizeof (buf), "%d", volinfo->sub_count); ret = glusterd_store_save_value (volinfo->shandle, - GLUSTERD_STORE_KEY_VOL_PORT, buf); + GLUSTERD_STORE_KEY_VOL_SUB_COUNT, buf); if (ret) goto out; - snprintf (buf, sizeof (buf), "%d", volinfo->sub_count); + snprintf (buf, sizeof (buf), "%d", volinfo->status); ret = glusterd_store_save_value (volinfo->shandle, - GLUSTERD_STORE_KEY_VOL_SUB_COUNT, buf); + GLUSTERD_STORE_KEY_VOL_VERSION, buf); if (ret) goto out; - list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { ret = glusterd_store_create_brick (volinfo, brickinfo); if (ret) -- cgit