From db3155c3c8a96bb964408f22d833d3997a64570b Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 14 Oct 2009 21:15:52 +0000 Subject: 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 BUG: 317 (Data corruption with write-behind loaded in translator tree.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=317 --- xlators/performance/quick-read/src/quick-read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xlators/performance/quick-read/src/quick-read.c') diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 198cd2d98..e025f0d0a 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -1625,8 +1625,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) { -- cgit