diff options
author | Amar Tumballi <amar@gluster.com> | 2010-09-13 06:59:55 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-13 06:45:07 -0700 |
commit | 47a0854524123c21ef1a40d4f33c5593eb586565 (patch) | |
tree | 9120e08544cba40eaf8e5bdea04ca5cca81c51c4 /xlators/mgmt/glusterd | |
parent | 58cedad283af2005f7f4969f7ac50a8e937e5594 (diff) |
gluster log {rotate,filename} : uuid check for bricks
Thanks to Raghavendra Bhat <raghavendrabhat@gluster.com> for
pointing out the fix.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1550 (volume log rotate failed.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1550
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |