From e36b0532346131591089fe62e23b8c519b1e3651 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Sat, 6 May 2017 20:01:16 +0530 Subject: cluster/dht: Fix ret check Fixed an incorrect return code check in the rebalance code. > BUG: 1448640 > Signed-off-by: N Balachandran > Reviewed-on: https://review.gluster.org/17197 > NetBSD-regression: NetBSD Build System > CentOS-regression: Gluster Build System > Smoke: Gluster Build System > Reviewed-by: Raghavendra G (cherry picked from commit 67598f538efb24a9e5ac561b294a05e707e15761) Change-Id: I60804ff121cec7a2f0419e2ee70dd22ea7533c0c BUG: 1448864 Signed-off-by: N Balachandran Reviewed-on: https://review.gluster.org/17204 Reviewed-by: MOHIT AGRAWAL Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra G --- xlators/cluster/dht/src/dht-rebalance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 41a50cff3cc..0c83c15a4dc 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -3894,7 +3894,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."); -- cgit