From de6be8f7f5eed270aa6fa904b1da15c9bc0b6e3b Mon Sep 17 00:00:00 2001 From: vinayak hegde Date: Thu, 5 Nov 2009 06:29:58 +0000 Subject: performance/stat-prefetch: In sp_readdir_cbk op_ret is not handled correctly. Signed-off-by: Vinayak Hegde Signed-off-by: Anand V. Avati 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 --- xlators/performance/stat-prefetch/src/stat-prefetch.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/performance/stat-prefetch') diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c index 26bac60b7..28fc71948 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; -- cgit