summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.c
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2014-05-16 15:41:33 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2014-05-17 01:46:17 -0700
commitf4a391e5a44950b0468af082255b9f5abf52b10b (patch)
treec0ad8e56213dbe845b29f834330092650d51d207 /xlators/cluster/afr/src/afr.c
parent6a9a52c932bc5be469af119e5b0b3afb8046f625 (diff)
cluster/afr: move messages to new logging framework
Change important (from a diagnostics point of view) log messages to use the gf_msg() framework. Change-Id: I0a58184bbb78989db149e67f07c140a21c781bc2 BUG: 1075611 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/7784 Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr.c')
-rw-r--r--xlators/cluster/afr/src/afr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 6af136e9163..2c0ff05fd78 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -85,7 +85,7 @@ void
fix_quorum_options (xlator_t *this, afr_private_t *priv, char *qtype)
{
if (priv->quorum_count && strcmp(qtype,"fixed")) {
- gf_log(this->name,GF_LOG_WARNING,
+ gf_msg (this->name,GF_LOG_WARNING, 0, AFR_MSG_QUORUM_OVERRIDE,
"quorum-type %s overriding quorum-count %u",
qtype, priv->quorum_count);
}
@@ -181,7 +181,8 @@ reconfigure (xlator_t *this, dict_t *options)
uint32, out);
fix_quorum_options(this,priv,qtype);
if (priv->quorum_count && !afr_has_quorum (priv->child_up, this))
- gf_log (this->name, GF_LOG_WARNING, "Client-quorum is not met");
+ gf_msg (this->name, GF_LOG_WARNING, 0, AFR_MSG_QUORUM_FAIL,
+ "Client-quorum is not met");
GF_OPTION_RECONF ("post-op-delay-secs", priv->post_op_delay_secs, options,