diff options
author | vinayak hegde <vinayak@gluster.com> | 2009-11-05 06:29:58 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-11-05 04:23:30 -0800 |
commit | de6be8f7f5eed270aa6fa904b1da15c9bc0b6e3b (patch) | |
tree | 85c43a509dd6e6c7b972f9da22059f26043632df | |
parent | fcd9175ee73b9fe4fddf4348a3f9dbc395e14a01 (diff) |
performance/stat-prefetch: In sp_readdir_cbk op_ret is not handled correctly.
Signed-off-by: Vinayak Hegde <vinayak@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 360 (All fop fails when stat-prefetch is loaded on afr.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=360
-rw-r--r-- | xlators/performance/stat-prefetch/src/stat-prefetch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c index 26bac60b76d..28fc719489c 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.c +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c @@ -847,6 +847,10 @@ sp_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, fd_t *fd = NULL; int32_t ret = 0; + if (op_ret == -1) { + goto out; + } + local = frame->local; if (local == NULL) { goto out; |