diff options
author | Venkatesh Somyajulu <vsomyaju@redhat.com> | 2012-06-21 18:31:23 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-07-02 15:57:16 -0700 |
commit | 004d01ddfa6b9388835bb05a3b13a766719e2158 (patch) | |
tree | c99c9494a577cae39cac67156bddb126caae919f /xlators/mgmt | |
parent | 295c0280d117cfca85f354d8098ea72c30ef2ced (diff) |
mgmt/glusterd: Added spaces in the logs
Change-Id: Ic44e339219a845946e18c8c926fe993e09f86624
BUG: 820555
Signed-off-by: Venkatesh Somyajulu <vsomyaju@redhat.com>
Reviewed-on: http://review.gluster.com/3609
Reviewed-by: Kaushal M <kaushal@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-ops.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c index 4bf82a1fe..0bbadad3d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c @@ -255,7 +255,9 @@ glusterd_handle_cli_start_volume (rpcsvc_request_t *req) char *volname = NULL; dict_t *dict = NULL; glusterd_op_t cli_op = GD_OP_START_VOLUME; + xlator_t *this = NULL; + this = THIS; GF_ASSERT (req); if (!xdr_to_generic (req->msg[0], &cli_req, @@ -282,12 +284,12 @@ glusterd_handle_cli_start_volume (rpcsvc_request_t *req) ret = dict_get_str (dict, "volname", &volname); if (ret) { - gf_log (THIS->name, GF_LOG_ERROR, "dict get failed"); + gf_log (this->name, GF_LOG_ERROR, "dict get failed"); goto out; } - gf_log ("glusterd", GF_LOG_INFO, "Received start vol req" - "for volume %s", volname); + gf_log (this->name, GF_LOG_INFO, "Received start vol req" + " for volume %s", volname); ret = glusterd_op_begin (req, GD_OP_START_VOLUME, dict); @@ -319,7 +321,9 @@ glusterd_handle_cli_stop_volume (rpcsvc_request_t *req) char *dup_volname = NULL; dict_t *dict = NULL; glusterd_op_t cli_op = GD_OP_STOP_VOLUME; + xlator_t *this = NULL; + this = THIS; GF_ASSERT (req); if (!xdr_to_generic (req->msg[0], &cli_req, @@ -336,7 +340,7 @@ glusterd_handle_cli_stop_volume (rpcsvc_request_t *req) cli_req.dict.dict_len, &dict); if (ret < 0) { - gf_log ("glusterd", GF_LOG_ERROR, + gf_log (this->name, GF_LOG_ERROR, "failed to " "unserialize req-buffer to dictionary"); goto out; @@ -350,7 +354,7 @@ glusterd_handle_cli_stop_volume (rpcsvc_request_t *req) goto out; } - gf_log ("glusterd", GF_LOG_INFO, "Received stop vol req" + gf_log (this->name, GF_LOG_INFO, "Received stop vol req " "for volume %s", dup_volname); ret = glusterd_op_begin (req, GD_OP_STOP_VOLUME, dict); |