From bb4955c4e12618171ae69c4161db709ff7d29981 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Mon, 3 May 2010 18:10:46 +0000 Subject: cluster/afr: Unwind lk using struct flock from a successful server Signed-off-by: Vikas Gorur Signed-off-by: Anand V. Avati BUG: 882 (directory traversing problem (client crash)) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=882 --- xlators/cluster/afr/src/afr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src') diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 41eff8ed0..a3f1e9ace 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -2445,6 +2445,7 @@ afr_lk_cbk (call_frame_t *frame, void *cookie, xlator_t *this, local->op_ret = 0; local->op_errno = 0; local->cont.lk.locked_nodes[child_index] = 1; + local->cont.lk.flock = *lock; } child_index++; @@ -2463,7 +2464,7 @@ afr_lk_cbk (call_frame_t *frame, void *cookie, xlator_t *this, /* locking has succeeded on all nodes that are up */ AFR_STACK_UNWIND (lk, frame, local->op_ret, local->op_errno, - lock); + &local->cont.lk.flock); } return 0; -- cgit