diff options
author | Kaushal M <kaushal@redhat.com> | 2013-11-22 11:27:14 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-12-10 23:30:05 -0800 |
commit | cb44756616f2ef9a6480adf104efa108300b06c3 (patch) | |
tree | b6ef3aab6bf19b6b2e0395093c5af54afb130380 /xlators/mgmt/glusterd/src/glusterd-utils.h | |
parent | 6a163b22144a689cd89a6a605715959e654ea015 (diff) |
glusterd: Improve rebalance handling during volume sync
Glusterd will now correctly copy existing rebalance information when a
volinfo is updated during volume sync. If the existing rebalance
information was stale, then any existing rebalance process will be
termimnated. A new rebalance process will be started only if there is no
existing rebalance process. The rebalance process will not be started if
the existing rebalance session had completed, failed or been stopped.
Change-Id: I68c5984267c188734da76770ba557662d4ea3ee0
BUG: 1036464
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.org/6334
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index 7917fba197e..970b1f8a638 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -621,4 +621,7 @@ glusterd_remove_auxiliary_mount (char *volname); gf_boolean_t glusterd_status_has_tasks (int cmd); + +int +gd_stop_rebalance_process (glusterd_volinfo_t *volinfo); #endif |