summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/performance/quick-read/src/quick-read.c8
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.c8
2 files changed, 15 insertions, 1 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 0e4ce71a571..aa44c5d388b 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -1049,7 +1049,13 @@ qr_inode_table_destroy (qr_private_t *priv)
conf = &priv->conf;
for (i = 0; i < conf->max_pri; i++) {
- GF_ASSERT (list_empty (&priv->table.lru[i]));
+ /* There is a known leak of inodes, hence until
+ * that is fixed, log the assert as warning.
+ GF_ASSERT (list_empty (&priv->table.lru[i]));*/
+ if (!list_empty (&priv->table.lru[i])) {
+ gf_log ("quick-read", GF_LOG_INFO,
+ "quick read inode table lru not empty");
+ }
}
LOCK_DESTROY (&priv->table.lock);
diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c
index 01c861d52f2..7ea9f40a1c8 100644
--- a/xlators/performance/read-ahead/src/read-ahead.c
+++ b/xlators/performance/read-ahead/src/read-ahead.c
@@ -1204,8 +1204,16 @@ fini (xlator_t *this)
this->private = NULL;
+ /* The files structures allocated in open and create are not deleted.
+ * until that is freed, marking the below assert as warning.
GF_ASSERT ((conf->files.next == &conf->files)
&& (conf->files.prev == &conf->files));
+ */
+ if (!((conf->files.next == &conf->files)
+ && (conf->files.prev == &conf->files))) {
+ gf_log (this->name, GF_LOG_INFO,
+ "undestroyed read ahead file structures found");
+ }
pthread_mutex_destroy (&conf->conf_lock);
GF_FREE (conf);