diff options
-rw-r--r-- | xlators/cluster/ec/src/ec-common.c | 5 |
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 d273a15ef9f..46bf7f097ee 100644 --- a/xlators/cluster/ec/src/ec-common.c +++ b/xlators/cluster/ec/src/ec-common.c @@ -1410,11 +1410,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 |