From ba365f725a91bcd3dcfae1d8311f9f148ce69055 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 12 Apr 2011 10:30:24 +0000 Subject: remove excessive logs due to log enhancement Signed-off-by: Amar Tumballi Signed-off-by: Anand Avati BUG: 2346 (Log message enhancements in GlusterFS - phase 1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346 --- xlators/performance/stat-prefetch/src/stat-prefetch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/performance/stat-prefetch/src') diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c index 7717e3d72..b99c91bce 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.c +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c @@ -894,7 +894,8 @@ sp_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto out; } - if (op_ret == -1) { + /* For '/' Entry is never cached, don't try to remove it */ + if ((op_ret == -1) && local->loc.parent) { sp_remove_caches_from_all_fds_opened (this, local->loc.parent, (char *)local->loc.name); } -- cgit