summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-05-30 09:36:34 +0530
committerN Balachandran <nbalacha@redhat.com>2018-05-30 09:37:19 +0530
commit6d569e27c203c4d7abdd14112b1f5f6bac8c94ad (patch)
treef6897eb0edc5cc1bc14a6d1b7ce52ed456b553a7 /xlators
parent202d27c5309f2b5a2c4cda4af2e9a1ec85e1e9ad (diff)
cluster:dht: Corrected ret code check
syncop functions return -op_errno. Change-Id: Ifdb1bd1d1d11972b4306a2336e6737d6236a2fb1 fixes: bz#1580238 Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-rebalance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c
index 41a61a50e4b..0f836522499 100644
--- a/xlators/cluster/dht/src/dht-rebalance.c
+++ b/xlators/cluster/dht/src/dht-rebalance.c
@@ -2433,7 +2433,7 @@ out:
lk_ret = syncop_removexattr (to, loc,
GF_PROTECT_FROM_EXTERNAL_WRITES,
NULL, NULL);
- if (lk_ret && (lk_ret != ENODATA) && (lk_ret != ENOATTR)) {
+ 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_PROTECT_FROM_EXTERNAL_WRITES);