summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-inode-write.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-07-30 07:41:06 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-30 12:01:07 -0700
commit5e3ca250dd50f5723bc6a2034c0d637f6cfd941d (patch)
treed2d528d882a0c54e48ad59761713cb8f134a5966 /xlators/cluster/afr/src/afr-inode-write.c
parent65c03aa578340e78bd828f1f1aae991ef0cdc448 (diff)
afr: fix afr_utimens to wait for success of utimens on atleast priv->wait_count children.
- need_unwind was initialised to 1 in afr_utimens_wind_cbk causing replicate to unwind just after first reply, irrespective of whether it was a success or failure. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 71 (dns failure causing "Transport endpoint is not connected") URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=71
Diffstat (limited to 'xlators/cluster/afr/src/afr-inode-write.c')
-rw-r--r--xlators/cluster/afr/src/afr-inode-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c
index 6a2774bee72..a1bf17247f9 100644
--- a/xlators/cluster/afr/src/afr-inode-write.c
+++ b/xlators/cluster/afr/src/afr-inode-write.c
@@ -1637,7 +1637,7 @@ afr_utimens_wind_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int child_index = (long) cookie;
int call_count = -1;
- int need_unwind = 1;
+ int need_unwind = 0;
int read_child = 0;
local = frame->local;