diff options
author | N Balachandran <nbalacha@redhat.com> | 2017-05-06 20:01:16 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2017-05-08 04:47:37 +0000 |
commit | 67598f538efb24a9e5ac561b294a05e707e15761 (patch) | |
tree | 27655e94f398690ecc2e5a8e49e2fcbeca509b9e /xlators/cluster/dht/src | |
parent | e0aaaccefdfda345b981b86dea23b2ffa52e9377 (diff) |
cluster/dht: Fix ret check
Fixed an incorrect return code check in the rebalance
code.
Change-Id: I60804ff121cec7a2f0419e2ee70dd22ea7533c0c
BUG: 1448640
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Reviewed-on: https://review.gluster.org/17197
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src')
-rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 2 |
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 ee0631689ee..a5d00e37c0e 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -4202,7 +4202,7 @@ gf_defrag_start_crawl (void *data) } ret = gf_defrag_total_file_cnt (this, &loc); - if (!ret) { + if (ret) { gf_msg (this->name, GF_LOG_ERROR, 0, 0, "Failed to get " "the total number of files. Unable to estimate " "time to complete rebalance."); |