diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2015-07-08 17:52:11 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-07-21 23:26:47 -0700 |
commit | 42b834669a08547de953eb42d6cc1601461c7fbb (patch) | |
tree | aba2511b83bb80b93cc3d51edaf2869713067a72 /xlators/cluster/ec/src/ec-common.c | |
parent | 8050ea1a0dd293e7c6b8507130b9c174ebd543d0 (diff) |
cluster/ec: Don't read from bricks that are healing
>BUG: 1232678
>Change-Id: I35503039e4723cf7f33d6797f0ba90dd0aca130b
>Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
>Reviewed-on: http://review.gluster.org/11580
>Tested-by: NetBSD Build System <jenkins@build.gluster.org>
>Tested-by: Gluster Build System <jenkins@build.gluster.com>
>Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
BUG: 1243647
Change-Id: I4eb45197a5a8d9652eded37ba1e67d9ea745a583
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/11685
Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-common.c')
-rw-r--r-- | xlators/cluster/ec/src/ec-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-common.c b/xlators/cluster/ec/src/ec-common.c index 439773e1ac8..0a173bf0104 100644 --- a/xlators/cluster/ec/src/ec-common.c +++ b/xlators/cluster/ec/src/ec-common.c @@ -414,7 +414,7 @@ int32_t ec_child_select(ec_fop_data_t * fop) * head/tail read in case of writev fop. Unlocks shouldn't do this because * unlock should go on all subvols where lock is performed*/ if (fop->parent && !ec_must_wind (fop)) - fop->mask &= fop->parent->mask; + fop->mask &= (fop->parent->mask & ~fop->parent->healing); mask = ec->xl_up; if (fop->parent == NULL) |