d1681e
From 72729dfb7c320880980eca6b2f0139658f259788 Mon Sep 17 00:00:00 2001
d1681e
From: N Balachandran <nbalacha@redhat.com>
d1681e
Date: Mon, 13 Aug 2018 22:17:17 +0530
d1681e
Subject: [PATCH 351/351] cluster/dht: Fixed rebalanced files
d1681e
d1681e
An error caused skipped files to be counted as
d1681e
rebalanced files.
d1681e
d1681e
Upstream patch: https://review.gluster.org/#/c/glusterfs/+/20724/
d1681e
d1681e
> Change-Id: I02333f099fb8b73ba953f41a2922021a1e4da7be
d1681e
> fixes: bz#1615474
d1681e
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
d1681e
d1681e
Change-Id: I6921f92c4a784c51833ade8e1cde4744c0fd0d00
d1681e
BUG: 1615338
d1681e
Signed-off-by: N Balachandran <nbalacha@redhat.com>
d1681e
Reviewed-on: https://code.engineering.redhat.com/gerrit/147007
d1681e
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
d1681e
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d1681e
---
d1681e
 xlators/cluster/dht/src/dht-rebalance.c | 2 +-
d1681e
 1 file changed, 1 insertion(+), 1 deletion(-)
d1681e
d1681e
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c
d1681e
index b9078e0..d0f49d2 100644
d1681e
--- a/xlators/cluster/dht/src/dht-rebalance.c
d1681e
+++ b/xlators/cluster/dht/src/dht-rebalance.c
d1681e
@@ -2841,7 +2841,7 @@ gf_defrag_migrate_single_file (void *opaque)
d1681e
                 }
d1681e
 
d1681e
                 ret = 0;
d1681e
-
d1681e
+                goto out;
d1681e
         } else if (ret < 0) {
d1681e
                 if (fop_errno != EEXIST) {
d1681e
                         gf_msg (this->name, GF_LOG_ERROR, fop_errno,
d1681e
-- 
d1681e
1.8.3.1
d1681e