summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-10-04 02:17:09 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-04 03:58:59 -0700
commitebc40051898881fa3d49946046448ee34e356338 (patch)
treecabe545c59674387bfb2e0315c98b67b8b220e2a /xlators/mgmt
parent73f8e094495a71f6a6a4c90495874396f2614567 (diff)
mgmt/glusterd: update volumes from friend
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1784 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1784
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 8ad9379a73f..d72fa73f1f6 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -1526,6 +1526,7 @@ glusterd_compare_friend_data (dict_t *vols, int32_t *status)
int32_t ret = -1;
int32_t count = 0;
int i = 1;
+ gf_boolean_t update = _gf_false;
GF_ASSERT (vols);
GF_ASSERT (status);
@@ -1543,11 +1544,13 @@ glusterd_compare_friend_data (dict_t *vols, int32_t *status)
ret = 0;
goto out;
}
+ if (GLUSTERD_VOL_COMP_UPDATE_REQ == *status)
+ update = _gf_true;
i++;
}
- if (GLUSTERD_VOL_COMP_UPDATE_REQ == *status) {
+ if (update) {
ret = glusterd_import_friend_volumes (vols);
if (ret)
goto out;