diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2016-01-08 13:06:27 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2016-01-27 19:21:15 -0800 |
commit | eca923349b4cb397b19520e4e391e42b8d6532c2 (patch) | |
tree | 31936f38075cf29bfa1b495b4f6c095ad219367d /xlators/cluster/afr/src/afr-common.c | |
parent | d57bf5bf59c72ef5c791efed885b5f2d80e42a97 (diff) |
cluster/afr: Move remaining gf_logs to gf_msgs
Change-Id: I48d9e5313bd3ccf9fe26c90a7051a8a174d75c49
BUG: 1296818
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/13195
Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 27403eaa58b..f33e00a76a0 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -474,8 +474,9 @@ afr_spb_choice_timeout_cancel (xlator_t *this, inode_t *inode) { __afr_inode_ctx_get (this, inode, &ctx); if (!ctx) { - gf_log (this->name, GF_LOG_WARNING, "Failed to cancel" - " split-brain choice timer."); + gf_msg (this->name, GF_LOG_WARNING, 0, + AFR_MSG_SPLIT_BRAIN_CHOICE_ERROR, + "Failed to cancel split-brain choice timer."); goto out; } ctx->spb_choice = -1; @@ -530,7 +531,8 @@ afr_set_split_brain_choice (int ret, call_frame_t *frame, void *opaque) goto out; if (!(data->d_spb || data->m_spb)) { - gf_log (this->name, GF_LOG_WARNING, "Cannot set " + gf_msg (this->name, GF_LOG_WARNING, 0, + AFR_MSG_SPLIT_BRAIN_CHOICE_ERROR, "Cannot set " "replica.split-brain-choice on %s. File is" " not in data/metadata split-brain.", uuid_utoa (loc->gfid)); @@ -543,8 +545,9 @@ afr_set_split_brain_choice (int ret, call_frame_t *frame, void *opaque) { ret = __afr_inode_ctx_get (this, inode, &ctx); if (ret) { - gf_log (this->name, GF_LOG_ERROR, "Failed to get" - "inode_ctx for %s", loc->name); + gf_msg (this->name, GF_LOG_ERROR, 0, + AFR_MSG_SPLIT_BRAIN_CHOICE_ERROR, + "Failed to get inode_ctx for %s", loc->name); goto unlock; } |