From 47a0854524123c21ef1a40d4f33c5593eb586565 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 13 Sep 2010 06:59:55 +0000 Subject: gluster log {rotate,filename} : uuid check for bricks Thanks to Raghavendra Bhat for pointing out the fix. Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1550 (volume log rotate failed.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1550 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 7a063f64bc3..cdec2e098d4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -2490,6 +2490,9 @@ glusterd_op_log_filename (gd1_mgmt_stage_op_req *req) goto out; list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { + if (uuid_compare (brickinfo->uuid, priv->uuid)) + continue; + if (brick && strcmp (brickinfo->path, brick)) continue; @@ -2571,6 +2574,9 @@ glusterd_op_log_rotate (gd1_mgmt_stage_op_req *req) goto out; list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { + if (uuid_compare (brickinfo->uuid, priv->uuid)) + continue; + if (brick && strcmp (brickinfo->path, brick)) continue; -- cgit