summaryrefslogtreecommitdiffstats
path: root/xlators/performance/read-ahead/src
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/read-ahead/src
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/read-ahead/src')
-rw-r--r--xlators/performance/read-ahead/src/read-ahead-messages.h19
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.c7
2 files changed, 23 insertions, 3 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead-messages.h b/xlators/performance/read-ahead/src/read-ahead-messages.h
index a205ceeb855..e6eaab10777 100644
--- a/xlators/performance/read-ahead/src/read-ahead-messages.h
+++ b/xlators/performance/read-ahead/src/read-ahead-messages.h
@@ -40,7 +40,7 @@
*/
#define GLFS_READ_AHEAD_BASE GLFS_MSGID_COMP_READ_AHEAD
-#define GLFS_READ_AHEAD_NUM_MESSAGES 4
+#define GLFS_READ_AHEAD_NUM_MESSAGES 6
#define GLFS_MSGID_END (GLFS_READ_AHEAD_BASE +\
GLFS_READ_AHEAD_NUM_MESSAGES + 1)
@@ -86,6 +86,23 @@
#define READ_AHEAD_MSG_FD_CONTEXT_NOT_SET (GLFS_READ_AHEAD_BASE + 4)
+/*!
+ * @messageid
+ * @diagnosis
+ * @recommendedaction None
+ *
+ */
+
+#define READ_AHEAD_MSG_UNDESTROYED_FILE_FOUND (GLFS_READ_AHEAD_BASE + 5)
+
+/*!
+ * @messageid
+ * @diagnosis
+ * @recommendedaction None
+ *
+ */
+
+#define READ_AHEAD_MSG_XLATOR_CONF_NULL (GLFS_READ_AHEAD_BASE + 6)
/*------------*/
#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"
diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c
index 923163ab07c..242b57971a0 100644
--- a/xlators/performance/read-ahead/src/read-ahead.c
+++ b/xlators/performance/read-ahead/src/read-ahead.c
@@ -1059,7 +1059,9 @@ ra_priv_dump (xlator_t *this)
conf = this->private;
if (!conf) {
- gf_log (this->name, GF_LOG_WARNING, "conf null in xlator");
+ gf_msg (this->name, GF_LOG_WARNING, 0,
+ READ_AHEAD_MSG_XLATOR_CONF_NULL,
+ "conf null in xlator");
goto out;
}
@@ -1217,7 +1219,8 @@ fini (xlator_t *this)
*/
if (!((conf->files.next == &conf->files)
&& (conf->files.prev == &conf->files))) {
- gf_log (this->name, GF_LOG_INFO,
+ gf_msg (this->name, GF_LOG_INFO, 0,
+ READ_AHEAD_MSG_UNDESTROYED_FILE_FOUND,
"undestroyed read ahead file structures found");
}