diff options
| author | Raghavendra G <raghavendra@gluster.com> | 2009-10-14 21:15:52 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-15 09:19:24 -0700 | 
| commit | db3155c3c8a96bb964408f22d833d3997a64570b (patch) | |
| tree | 69b1f89df81bafdaa0aaab0929a4dcd9b9068a4f | |
| parent | 52521b87a32d841d5d4c9492c0916d658dc99907 (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 198cd2d9849..e025f0d0aa9 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) {  | 
