summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-rebalance.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-09-30 10:51:54 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-29 23:23:30 -0700
commitd82f740d34f3a0b353408caf6509bef709f877a8 (patch)
tree1ccad6500c6b69e877e4aa5fc9ad369d7e459e63 /xlators/mgmt/glusterd/src/glusterd-rebalance.c
parent5cfca9f388cd153bcbcb963ba91867acf3bfac25 (diff)
glusterd rebalance: allow 'status' and 'stop' from all the peers
* the check to see which command is issued to do the source node check had an error. Change-Id: I5cebe6e263c416d859af4f413d47c7b643815f6f BUG: 3655 Reviewed-on: http://review.gluster.com/537 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <shishirng@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index 7fe2b8cb21b..208d0b3f3f3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -880,7 +880,7 @@ glusterd_op_rebalance (dict_t *dict, char **op_errstr, dict_t *rsp_dict)
goto out;
}
- if ((cmd != GF_DEFRAG_CMD_STATUS) ||
+ if ((cmd != GF_DEFRAG_CMD_STATUS) &&
(cmd != GF_DEFRAG_CMD_STOP)) {
ret = dict_get_ptr (dict, "node-uuid", &node_uuid);
if (ret) {