diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-12-15 06:00:28 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-12-27 20:50:44 -0800 |
commit | e89a57733381b5fc70128eefc3184c03004b994a (patch) | |
tree | 87bb24b47294ace47e1b543fdedc10a5c136cebc | |
parent | 8ba141e5e5d6616f05f69bb958b4a879198c1de5 (diff) |
log the total rebalance command recieved into the logfile
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
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
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-rebalance.c | 5 |
1 files 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; |