From e89a57733381b5fc70128eefc3184c03004b994a Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 15 Dec 2010 06:00:28 +0000 Subject: log the total rebalance command recieved into the logfile Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 2231 (log the total rebalance command recieved, in the logfile to avoid confusion) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2231 --- xlators/mgmt/glusterd/src/glusterd-rebalance.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index 55a2e45e2ca..3e4b4f5a26c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c +++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c @@ -395,8 +395,9 @@ glusterd_handle_defrag_volume (rpcsvc_request_t *req) default: break; } - gf_log ("glusterd", GF_LOG_NORMAL, "Received rebalance volume on %s", - cli_req.volname); + gf_log ("glusterd", GF_LOG_NORMAL, "Received rebalance volume %s on %s", + (cli_req.cmd == GF_DEFRAG_CMD_START)?"start":(cli_req.cmd == GF_DEFRAG_CMD_STOP)?"stop":"status" + , cli_req.volname); rsp.volname = cli_req.volname; rsp.op_ret = -1; -- cgit