From c0be54cfcd4491ca212226ed5687740813a4aeb6 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 25 Nov 2010 23:35:18 +0000 Subject: stat-prefetch: changes to incorporate gfid Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 2136 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2136 --- xlators/performance/stat-prefetch/src/stat-prefetch.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c index 0a984908fdc..846d148d1f9 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.c +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c @@ -27,7 +27,7 @@ typedef enum { SP_EXPECT, SP_DONT_EXPECT, SP_DONT_CARE -}sp_expect_t; +} sp_expect_t; void @@ -787,6 +787,9 @@ sp_cache_add_entries (sp_cache_t *cache, gf_dirent_t *entries) continue; } + if (uuid_is_null (entry->d_stat.ia_gfid)) + continue; + new = gf_dirent_for_name (entry->d_name); if (new == NULL) { goto unlock; @@ -967,6 +970,9 @@ sp_is_empty (dict_t *this, char *key, data_t *value, void *data) { char *ptr = data; + if (strcmp (key, "gfid-req") == 0) + return; + if (ptr && *ptr) { *ptr = 0; } -- cgit