summaryrefslogtreecommitdiffstats
path: root/xlators/performance/quick-read
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-10-14 21:14:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-15 09:19:17 -0700
commit680164e64ab9a3817364626cd27cdc997ca16414 (patch)
tree79aed5d899dfccc75efe5828117055ef7e75c706 /xlators/performance/quick-read
parent44db9af90b7280520c1c599d2bf54dd477961948 (diff)
performance/quick-read: flush should proceed with winding if fd-context is not found.
- if the fd-context is not set, quick-read has no role to play other than just passing down the call to underlying translators. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 317 (Data corruption with write-behind loaded in translator tree.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=317
Diffstat (limited to 'xlators/performance/quick-read')
-rw-r--r--xlators/performance/quick-read/src/quick-read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index c91fa89a0a7..54367a3fd75 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -1540,8 +1540,7 @@ qr_flush (call_frame_t *frame, xlator_t *this, fd_t *fd)
unlock:
UNLOCK (&qr_fd_ctx->lock);
} else {
- op_ret = 0;
- need_unwind = 1;
+ can_wind = 1;
}
if (need_unwind) {