summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8ad9379a7..d72fa73f1 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;