summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2012-01-17 11:54:20 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-19 06:58:10 -0800
commit6481f062b8ad0f47fa7715f78b7bf61623d1dc9a (patch)
tree754679d90ba9d39fe9dda2763f361d49d3de324c /xlators
parent3169891538331a8a0e954010c5dac8360997da12 (diff)
cli: trivial changes in cli-rpc-ops.c
* the get_volume_cbk has been cleaned up(w.r.t whitespace) and a memset used where appropriate. some other functions have been affected(in a good way) by the whitespace-dealing commands in emacs. Change-Id: Iba473290e87747f8bb06d335db06c872a241d7cd BUG: 781333 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.com/2653 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 1cfcc01722d..86fc8ab5315 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -1741,16 +1741,12 @@ glusterd_handle_cli_profile_volume (rpcsvc_request_t *req)
goto out;
}
-
-
-
if (cli_req.dict.dict_len > 0) {
dict = dict_new();
if (!dict)
goto out;
dict_unserialize (cli_req.dict.dict_val,
cli_req.dict.dict_len, &dict);
-
}
ret = dict_get_str (dict, "volname", &volname);
@@ -1759,7 +1755,7 @@ glusterd_handle_cli_profile_volume (rpcsvc_request_t *req)
goto out;
}
- gf_log ("glusterd", GF_LOG_INFO, "Received volume profile req "
+ gf_log (THIS->name, GF_LOG_INFO, "Received volume profile req "
"for volume %s", volname);
ret = dict_get_int32 (dict, "op", &op);
if (ret) {
@@ -1785,7 +1781,7 @@ out:
ret = glusterd_op_send_cli_response (cli_op, ret, 0, req,
NULL, "operation failed");
- gf_log ("glusterd", GF_LOG_DEBUG, "Returning %d", ret);
+ gf_log (THIS->name, GF_LOG_DEBUG, "Returning %d", ret);
return ret;
}