diff options
author | N Balachandran <nbalacha@redhat.com> | 2018-05-21 11:04:45 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2018-05-24 05:53:52 +0000 |
commit | 52fe35609d99821ebab003c93ca6e63aae243f95 (patch) | |
tree | c972a215a53da53a475d457273a35cca81e474c0 | |
parent | 1a4a900589b35faec28f67c7c26004a240bf6a6c (diff) |
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#1580238
Signed-off-by: N Balachandran <nbalacha@redhat.com>
-rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index cc03eaa1195..c99489597df 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -2433,10 +2433,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); } } |