summaryrefslogtreecommitdiffstats
path: root/xlators/performance/quick-read
diff options
context:
space:
mode:
authorHari Gowtham <hgowtham@redhat.com>2015-08-13 12:53:33 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-08-31 20:28:53 -0700
commit0baf199b065ee3adcbf36a503ac91737ab39f7e1 (patch)
tree98211fe02551346765b2e7b95a2b7438198f2669 /xlators/performance/quick-read
parent9f52d22690b3b0aac0a736eb15fe649fde6286b5 (diff)
performance translators : porting the missing gf_log to gf_msg
Change-Id: I5cc2b4669b164fe09637c86da05d2d94589dd7e4 BUG: 1253149 Signed-off-by: Hari Gowtham <hgowtham@redhat.com> Reviewed-on: http://review.gluster.org/11906 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/performance/quick-read')
-rw-r--r--xlators/performance/quick-read/src/quick-read-messages.h11
-rw-r--r--xlators/performance/quick-read/src/quick-read.c5
2 files changed, 13 insertions, 3 deletions
diff --git a/xlators/performance/quick-read/src/quick-read-messages.h b/xlators/performance/quick-read/src/quick-read-messages.h
index d7444dd8c8f..a3bd594471f 100644
--- a/xlators/performance/quick-read/src/quick-read-messages.h
+++ b/xlators/performance/quick-read/src/quick-read-messages.h
@@ -40,7 +40,7 @@
*/
#define GLFS_QUICK_READ_BASE GLFS_MSGID_COMP_QUICK_READ
-#define GLFS_QUICK_READ_NUM_MESSAGES 7
+#define GLFS_QUICK_READ_NUM_MESSAGES 8
#define GLFS_MSGID_END (GLFS_QUICK_READ_BASE +\
GLFS_QUICK_READ_NUM_MESSAGES + 1)
@@ -112,6 +112,15 @@
*
*/
+#define QUICK_READ_MSG_LRU_NOT_EMPTY (GLFS_QUICK_READ_BASE + 8)
+
+/*!
+ * @messageid
+ * @diagnosis
+ * @recommendedaction None
+ *
+ */
+
/*------------*/
#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 1426ae5760d..58fde4b4e81 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -1067,8 +1067,9 @@ qr_inode_table_destroy (qr_private_t *priv)
* 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");
+ gf_msg ("quick-read", GF_LOG_INFO, 0,
+ QUICK_READ_MSG_LRU_NOT_EMPTY,
+ "quick read inode table lru not empty");
}
}