From 8f267cc87b364970db3444620bb53dc2f50ca13b Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Tue, 14 Apr 2015 00:48:24 +0530 Subject: bitrot: Scrubber log should report 'bad' file detection as ALERT in log If scrubber detect any bad object by mismatching of checksum of scrubber and signer then log messages shold come as a Alert instead of warning. > Change-Id: I075d80700cbe6182e525a04419a80ab18419ff91 > BUG: 1210687 > Signed-off-by: Gaurav Kumar Garg > Reviewed-on: http://review.gluster.org/10226 > Tested-by: Gluster Build System > Reviewed-by: Raghavendra Bhat Change-Id: I7c733c82aed5a00c74e60dc7baca0aa9acf26fad BUG: 1220041 Reviewed-on: http://review.gluster.org/10715 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Vijay Bellur --- xlators/features/bit-rot/src/bitd/bit-rot-scrub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/features/bit-rot') diff --git a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c index ac45e6d9b6c..dd6abcd9f67 100644 --- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c +++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c @@ -203,8 +203,8 @@ bitd_compare_ckum (xlator_t *this, return 0; } - gf_log (this->name, GF_LOG_WARNING, - "Object checksumsum mismatch: %s [GFID: %s | Brick: %s]", + gf_log (this->name, GF_LOG_ALERT, + "Object checksum mismatch: %s [GFID: %s | Brick: %s]", loc->path, uuid_utoa (linked_inode->gfid), child->brick_path); /* Perform bad-file marking */ -- cgit