diff options
author | shishir gowda <shishirng@gluster.com> | 2010-10-04 07:45:08 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-04 07:05:47 -0700 |
commit | c2e93bf6e391657c23a16b6536f7976136c32ce5 (patch) | |
tree | 22b7b4c28d819dde761d065797d56cff0a8f8bde /xlators/mgmt/glusterd/src | |
parent | 63281f698908897218bb6ca427e280217a4b38c2 (diff) |
Additional status check for rebalance in progress
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1791 (remove-brick during rebalance)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1791
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index d72fa73f1..6f1cd0726 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -2124,5 +2124,6 @@ out: int glusterd_is_defrag_on (glusterd_volinfo_t *volinfo) { - return (volinfo->defrag_status == GF_DEFRAG_STATUS_STARTED); + return ((volinfo->defrag_status == GF_DEFRAG_STATUS_STARTED) || + (volinfo->defrag_status == GF_DEFRAG_STATUS_LAYOUT_FIX_COMPLETE)); } |