diff options
author | Kaushal M <kaushal@redhat.com> | 2013-02-14 12:47:54 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-18 10:35:48 -0800 |
commit | ef830366a38d9420ad9a5065226b1911125ca8aa (patch) | |
tree | 31a66d0e723ca32155301c60559ce2234dba7ff1 /xlators/mgmt/glusterd/src/glusterd-brick-ops.c | |
parent | 8403f9a2d976c33e01fbd9e4a4b04e8f1e936806 (diff) |
glusterd: Fix check for task-id existence in 'volume status'
This fixes the issue of task-id tests failing randomly. The condition used to
check rebalance/remove-brick was running was wrong, which could lead to the
task-id for these tasks to not be displayed even when the actual commit hadn't
occured.
Change-Id: I765daceda5b6bed1387342c15f9ea00552ac85f5
BUG: 857330
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.org/4514
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-brick-ops.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-brick-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c index fe556afef41..1c1ad1bf89b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c @@ -1506,7 +1506,7 @@ glusterd_op_remove_brick (dict_t *dict, char **op_errstr) } } - /* Clear task-id on completion/stopping of remove-brick operation */ + /* Clear task-id on commmitting/stopping of remove-brick operation */ if ((cmd != GF_OP_CMD_START) || (cmd != GF_OP_CMD_STATUS)) uuid_clear (volinfo->rebal.rebalance_id); |