From 5e3ca250dd50f5723bc6a2034c0d637f6cfd941d Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 30 Jul 2009 07:41:06 +0000 Subject: 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 BUG: 71 (dns failure causing "Transport endpoint is not connected") URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=71 --- xlators/cluster/afr/src/afr-inode-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/afr') diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c index 6a2774bee..a1bf17247 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; -- cgit