diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2014-05-03 12:52:44 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2014-05-06 21:48:03 -0700 |
commit | 199435aac3be170f6dadd4e88a576cec808ee419 (patch) | |
tree | 6537e12769485fb489af0a53c0629fe92acbaa82 /xlators/mgmt/glusterd/src/glusterd-rebalance.c | |
parent | 451246a58dbbc1ec777f379a6b779be374379abd (diff) |
glusterd : Port glusterd sync log messages to gf_msg API
Change-Id: Ic3ed2c96d8fc3a15fedaa80517a2c79c0c858963
BUG: 1075611
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/7652
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-rebalance.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index 763ceb74912..cf2272028c6 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c +++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c @@ -29,6 +29,7 @@ #include "glusterd-sm.h" #include "glusterd-op-sm.h" #include "glusterd-utils.h" +#include "glusterd-messages.h" #include "glusterd-store.h" #include "run.h" #include "glusterd-volgen.h" @@ -352,9 +353,9 @@ glusterd_rebalance_rpc_create (glusterd_volinfo_t *volinfo, priv); ret =sys_stat (sockfile, &buf); if (ret && (ENOENT == errno)) { - gf_log (this->name, GF_LOG_ERROR, "Rebalance " - "sockfile %s does not exist.", - sockfile); + gf_msg (this->name, GF_LOG_ERROR, 0, + GD_MSG_REBAL_NO_SOCK_FILE, "Rebalance " + "sockfile %s does not exist", sockfile); goto out; } } @@ -367,7 +368,8 @@ glusterd_rebalance_rpc_create (glusterd_volinfo_t *volinfo, */ ret = rpc_transport_unix_options_build (&options, sockfile, 600); if (ret) { - gf_log (THIS->name, GF_LOG_ERROR, "Unix options build failed"); + gf_msg (THIS->name, GF_LOG_ERROR, 0, GD_MSG_UNIX_OP_BUILD_FAIL, + "Unix options build failed"); goto out; } @@ -377,7 +379,8 @@ glusterd_rebalance_rpc_create (glusterd_volinfo_t *volinfo, glusterd_defrag_notify, volinfo); synclock_lock (&priv->big_lock); if (ret) { - gf_log (THIS->name, GF_LOG_ERROR, "RPC create failed"); + gf_msg (THIS->name, GF_LOG_ERROR, 0, GD_MSG_RPC_CREATE_FAIL, + "Glusterd RPC creation failed"); goto out; } ret = 0; |