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