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