From 27f39a7c9d10e836295ae4ad1a88d1f0a911079f Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 30 Aug 2010 01:16:05 +0000 Subject: mgmt/glusterd: remove volfile, brick file upon remove-brick Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1475 (glusterd should delete brick related files upon remove brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1475 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index cb8acbeb798..20a57660d0f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -1917,6 +1917,8 @@ glusterd_op_remove_brick (gd1_mgmt_stage_op_req *req) mybrick++; } + glusterd_delete_volfile (volinfo, brickinfo); + glusterd_store_delete_brick (volinfo, brickinfo); glusterd_brickinfo_delete (brickinfo); volinfo->brick_count--; -- cgit