summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorvinayak hegde <vinayak@gluster.com>2009-11-05 02:53:48 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-05 00:42:05 -0800
commitadd4dd9623de51dd67ecb8450ad1a57894d92dc2 (patch)
tree23c0f7157e2156b460a20964b93c43639a77470f /xlators/performance
parente151ab3ed4718606767146f18b416f8900552fbc (diff)
performance/stat-prefetch: In sp_readdir_cbk op_ret value is not handled.
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
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c4
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 d6e8bad1e1e..9035ed9b2bf 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.c
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c
@@ -865,6 +865,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;