diff options
| author | Raghavendra G <raghavendra@gluster.com> | 2009-10-14 21:14:36 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-15 09:19:17 -0700 | 
| commit | 680164e64ab9a3817364626cd27cdc997ca16414 (patch) | |
| tree | 79aed5d899dfccc75efe5828117055ef7e75c706 | |
| parent | 44db9af90b7280520c1c599d2bf54dd477961948 (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
| -rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 3 | 
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) {  | 
