summaryrefslogtreecommitdiffstats
path: root/xlators/performance/write-behind
diff options
context:
space:
mode:
authorBasavanagowda Kanur <gowda@gluster.com>2009-07-02 01:55:29 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-02 10:14:47 -0700
commitebfcb5368c225aed11c007aee1e362c5d345c2b0 (patch)
tree008110b5dca5f664537fea99862d86d2c8957f04 /xlators/performance/write-behind
parent4d176f44ce7b251794159371232954f810cfae02 (diff)
performance/write-behind - bug fix in open() and create().
open() & create() calls should reset frame->local to NULL. bz# 104 Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/performance/write-behind')
-rw-r--r--xlators/performance/write-behind/src/write-behind.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c
index f1f1604e912..ebf6be062de 100644
--- a/xlators/performance/write-behind/src/write-behind.c
+++ b/xlators/performance/write-behind/src/write-behind.c
@@ -1136,6 +1136,8 @@ wb_open_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret,
LOCK_INIT (&file->lock);
}
+
+ frame->local = NULL;
STACK_UNWIND (frame, op_ret, op_errno, fd);
return 0;
@@ -1193,7 +1195,9 @@ wb_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
LOCK_INIT (&file->lock);
}
-
+
+ frame->local = NULL;
+
STACK_UNWIND (frame, op_ret, op_errno, fd, inode, buf);
return 0;
}