summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-11-25 23:35:18 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-25 21:24:47 -0800
commitc0be54cfcd4491ca212226ed5687740813a4aeb6 (patch)
tree73ec0533de2e4ca3b11e4fcd318583b608ec723c /xlators/performance/stat-prefetch/src/stat-prefetch.c
parent47548f09f005998598edd8183804cd93c35a12f3 (diff)
stat-prefetch: changes to incorporate gfidv3.1.1qa11
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2136 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2136
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.c')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c8
1 files changed, 7 insertions, 1 deletions
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;
}