summaryrefslogtreecommitdiffstats
path: root/xlators/performance/write-behind
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-10-20 03:43:43 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-20 10:18:05 -0700
commit492993570bb02bd7d244693ad28e409973fa9f4c (patch)
tree178a3a97077340506251da16e98453c2307b0518 /xlators/performance/write-behind
parent61d0ad544322ea0e0e9b0549662b8ca912641951 (diff)
performance/write-behind: fix to bug in setattr which was causing frames to be missed.
- local->file was being assigned even before file pointer was got from any of the fds opened on the inode, thus making local->file to be NULL. In wb_setattr_cbk, since local->file is NULL (and hence file passed to wb_process_queue), wb_process_queue does not resume the pending operations queued for the file. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 327 (dbench does not complete) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=327
Diffstat (limited to 'xlators/performance/write-behind')
-rw-r--r--xlators/performance/write-behind/src/write-behind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c
index b67e53c37..bdbc21c97 100644
--- a/xlators/performance/write-behind/src/write-behind.c
+++ b/xlators/performance/write-behind/src/write-behind.c
@@ -1134,7 +1134,6 @@ wb_setattr (call_frame_t *frame, xlator_t *this, loc_t *loc,
goto unwind;
}
- local->file = file;
frame->local = local;
@@ -1163,6 +1162,8 @@ wb_setattr (call_frame_t *frame, xlator_t *this, loc_t *loc,
}
+ local->file = file;
+
if (file) {
stub = fop_setattr_stub (frame, wb_setattr_helper, loc, stbuf, valid);
if (stub == NULL) {