diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-08-19 15:56:49 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-08-19 23:18:53 -0700 |
commit | d9c6513289ca33204cdc110112ff8e45cbc8970a (patch) | |
tree | d68097996f3dd9b0882343be1c5d0b7bf6758315 /xlators/cluster/afr/src/afr-self-heal-metadata.c | |
parent | 5e89fda5180e66b1757bc620dfdb5701ce4d43f1 (diff) |
cluster/afr: Update fresh_children in lookup if no other ops in progress
If write/truncate fails we should remove the child that failed the fop
from the fresh children. The previous code assumes that the children
that succeeded the fop are fresh children, which is wrong. Fixed that
in this patch.
Change-Id: I1e6e21e20faea00516a0fdd2e95f2d7e9cf9076d
BUG: 3411
Reviewed-on: http://review.gluster.com/263
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-metadata.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-metadata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-metadata.c b/xlators/cluster/afr/src/afr-self-heal-metadata.c index bacf27588..5445132ab 100644 --- a/xlators/cluster/afr/src/afr-self-heal-metadata.c +++ b/xlators/cluster/afr/src/afr-self-heal-metadata.c @@ -160,8 +160,8 @@ afr_sh_metadata_erase_pending_cbk (call_frame_t *frame, void *cookie, if ((!IA_ISREG (sh->buf[sh->source].ia_type)) && (!IA_ISDIR (sh->buf[sh->source].ia_type))) { - afr_fresh_children_add_child (sh->fresh_children, i, - priv->child_count); + afr_children_add_child (sh->fresh_children, i, + priv->child_count); } call_count = afr_frame_return (frame); |