summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-07-23 11:25:01 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-27 11:34:00 -0700
commit666243d4b665e4e7db08c39fd62d12cabde9f428 (patch)
treecdf66ee9768f59ca306f10683e50998beb0dd337
parent4929a0f2fb31570906a4eb795b6c7655d107d3a9 (diff)
cluster/afr: Use user-supplied struct flock to STACK_WIND
afr_lk_cbk: Use the original struct flock supplied by the user to do further STACK_WIND's, and not the flock returned by the previous STACK_WIND. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 159 (Client hangs when coherent byte range locks is attempted in replicate setup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=159
-rw-r--r--xlators/cluster/afr/src/afr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 118e0fc3d..fe0ec3f1d 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -2064,7 +2064,6 @@ afr_lk_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
if (op_ret == 0) {
local->op_ret = 0;
local->op_errno = 0;
- local->cont.lk.flock = *lock;
local->cont.lk.locked_nodes[child_index] = 1;
}