d84cf8
From 6fed6cfcb26e6ed3c9640c5f889629315bbd83c2 Mon Sep 17 00:00:00 2001
d84cf8
From: Pranith Kumar K <pkarampu@redhat.com>
d84cf8
Date: Mon, 31 Aug 2020 12:22:05 +0530
d84cf8
Subject: [PATCH 469/469] cluster/ec: Don't trigger heal for stale index
d84cf8
d84cf8
     > Fixes: #1385
d84cf8
     > Upstream-patch: https://review.gluster.org/c/glusterfs/+/24930
d84cf8
d84cf8
BUG: 1785714
d84cf8
Change-Id: I3609dd2e1f63c4bd6a19d528b935bf5b05443824
d84cf8
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
d84cf8
Reviewed-on: https://code.engineering.redhat.com/gerrit/210731
d84cf8
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d84cf8
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d84cf8
---
d84cf8
 xlators/cluster/ec/src/ec-heal.c | 1 +
d84cf8
 1 file changed, 1 insertion(+)
d84cf8
d84cf8
diff --git a/xlators/cluster/ec/src/ec-heal.c b/xlators/cluster/ec/src/ec-heal.c
d84cf8
index 06bafa5..f6376cd 100644
d84cf8
--- a/xlators/cluster/ec/src/ec-heal.c
d84cf8
+++ b/xlators/cluster/ec/src/ec-heal.c
d84cf8
@@ -2624,6 +2624,7 @@ ec_heal_do(xlator_t *this, void *data, loc_t *loc, int32_t partial)
d84cf8
              * removed. We need not take lock on this entry to do so as
d84cf8
              * xattrop on a brick is atomic. */
d84cf8
             ec_heal_purge_stale_index(frame, ec, loc->inode);
d84cf8
+            goto out;
d84cf8
         } else if (need_heal == EC_HEAL_NONEED) {
d84cf8
             gf_msg(ec->xl->name, GF_LOG_DEBUG, 0, EC_MSG_HEAL_FAIL,
d84cf8
                    "Heal is not required for : %s ", uuid_utoa(loc->gfid));
d84cf8
-- 
d84cf8
1.8.3.1
d84cf8