From d9c6513289ca33204cdc110112ff8e45cbc8970a Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 19 Aug 2011 15:56:49 +0530 Subject: 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 Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src/afr-self-heal-entry.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c index 556ea8027..9e80cb3d5 100644 --- a/xlators/cluster/afr/src/afr-self-heal-entry.c +++ b/xlators/cluster/afr/src/afr-self-heal-entry.c @@ -130,7 +130,7 @@ afr_sh_entry_erase_pending_cbk (call_frame_t *frame, void *cookie, i = (long)cookie; - afr_fresh_children_add_child (sh->fresh_children, i, priv->child_count); + afr_children_add_child (sh->fresh_children, i, priv->child_count); if (op_ret == -1) { gf_log (this->name, GF_LOG_INFO, "%s: failed to erase pending xattrs on %s (%s)", -- cgit