summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kparthas@redhat.com>2012-10-24 10:05:03 +0530
committerAnand Avati <avati@redhat.com>2012-10-24 23:33:39 -0700
commit6be9a19b940dd52cdc6e2df4b212e6221b2cfcb2 (patch)
tree6967e1fea7c64be7cc6120e5f14e6edf09ac67d9
parent61c1d77f220e36af7feec14ae072d2f6e3230cf0 (diff)
glusterd: Remove brick from brick list on all nodes.
Change-Id: I7150691886550b80cf5de11464a36c3254c5d21b BUG: 866916 Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-on: http://review.gluster.org/4128 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index e55fc3ad7..25fb5cba7 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -4303,6 +4303,8 @@ glusterd_brick_stop (glusterd_volinfo_t *volinfo,
if (uuid_compare (brickinfo->uuid, MY_UUID)) {
ret = 0;
+ if (del_brick)
+ glusterd_delete_brick (volinfo, brickinfo);
goto out;
}