From 4e928f1d9a9cbbf18d3df3481f1d985f12a9c5ba Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 12 Apr 2011 22:40:14 +0000 Subject: mgmt/glusterd: log stats commands to cmd log Signed-off-by: Pranith Kumar K Signed-off-by: Anand Avati BUG: 2735 (log stats commands (top/profile) to cmd log) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2735 --- xlators/mgmt/glusterd/src/glusterd-handler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index eb3e32d44..3ebe5f51f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -3143,7 +3143,12 @@ glusterd_handle_cli_profile_volume (rpcsvc_request_t *req) dict_copy (tmp_dict, dict); + gf_cmd_log ("Volume stats", "volume : %s, op: %d", cli_req.volname, + cli_req.op); ret = glusterd_op_begin (req, cli_op, dict, _gf_true); + gf_cmd_log ("Volume stats", " on volume %s, op: %d %s ", + cli_req.volname, cli_req.op, + ((ret == 0)? " SUCCEDED":" FAILED")); out: glusterd_friend_sm (); -- cgit