summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorGaurav Kumar Garg <ggarg@redhat.com>2015-04-14 00:48:24 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2015-05-07 04:36:22 -0700
commit580759939dbcf835cb5293638060e8dbc41c7bea (patch)
tree7513781f972da625d93eb07f923475cf52533e32 /xlators
parent04b3a04b6dd497ea423cb725b5b4c8f05490dbdd (diff)
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: 1218033 Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com> Reviewed-on: http://review.gluster.org/10515 Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com> Tested-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot-scrub.c6
1 files changed, 3 insertions, 3 deletions
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 1e9c2035c81..183fd22a0fc 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
+++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
@@ -203,9 +203,9 @@ bitd_compare_ckum (xlator_t *this,
return 0;
}
- gf_log (this->name, GF_LOG_WARNING,
- "Object checksumsum mismatch: %s [GFID: %s]",
- entry->d_name, uuid_utoa (linked_inode->gfid));
+ 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 */
xattr = dict_new ();