From 680164e64ab9a3817364626cd27cdc997ca16414 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 14 Oct 2009 21:14:36 +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') 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) { -- cgit