From 67086dbd9e8fbe8ff21ba3cccdf21530ba3f80ff Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Mon, 21 May 2018 11:04:45 +0530 Subject: cluster/dht: Fix rebalance log msg Corrected the name of the xattr and fixed the code to log an error only if op_errno is not ENODATA or ENOATTR. Change-Id: I42c5b1d838eec586ac7bed2471eb1d27ff09a9ea fixes: bz#1583769 Signed-off-by: N Balachandran --- xlators/cluster/dht/src/dht-rebalance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index a2a051e27b7..e5ac9d0d653 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -2373,10 +2373,10 @@ out: lk_ret = syncop_removexattr (to, loc, GF_PROTECT_FROM_EXTERNAL_WRITES, NULL, NULL); - if (lk_ret) { + if (lk_ret && (lk_ret != -ENODATA) && (lk_ret != -ENOATTR)) { gf_msg (this->name, GF_LOG_WARNING, -lk_ret, 0, "%s: removexattr failed key %s", loc->path, - GF_CLEAN_WRITE_PROTECTION); + GF_PROTECT_FROM_EXTERNAL_WRITES); } } -- cgit