summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2019-07-08 21:13:28 +0800
committerPranith Kumar K <pkarampu@redhat.com>2019-10-30 13:48:18 +0530
commitbe7efe61efeb1552c30cb96ece6c11446a913484 (patch)
tree3204853b9360479aa33c212d5c1ca7abd48cbb9b /xlators
parenteaabd1ee6be50b8f40b67b0e1ff28dd9fc802546 (diff)
cluster/ec: inherit healing from lock when it has info
If lock has info, fop should inherit healing mask from it. Otherwise, fop cannot inherit right healing when changed_flags is zero. Change-Id: Ife80c9169d2c555024347a20300b0583f7e8a87f updates: bz#1739449 Signed-off-by: Kinglong Mee <mijinlong@horiscale.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/ec/src/ec-common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/ec/src/ec-common.c b/xlators/cluster/ec/src/ec-common.c
index e2e582f6b27..db1ff5b0f97 100644
--- a/xlators/cluster/ec/src/ec-common.c
+++ b/xlators/cluster/ec/src/ec-common.c
@@ -1412,11 +1412,12 @@ ec_get_size_version(ec_lock_link_t *link)
set_dirty = ec_set_dirty_flag(link, ctx, dirty);
/* If ec metadata has already been retrieved, do not try again. */
- if (ctx->have_info && (!set_dirty)) {
+ if (ctx->have_info) {
if (ec_is_data_fop(fop->id)) {
fop->healing |= lock->healing;
}
- goto unlock;
+ if (!set_dirty)
+ goto unlock;
}
/* Determine if there's something we need to retrieve for the current