summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-rebalance.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-12-23 14:57:37 +0530
committerVijay Bellur <vijay@gluster.com>2011-12-28 22:22:11 -0800
commit8de9cad2234109913cf090b93e77980603424e85 (patch)
tree4479b948ef5d7f57051cb44c967c6f9f0981f00e /xlators/mgmt/glusterd/src/glusterd-rebalance.c
parent145b0f5a45c600c4f84f0d85adf36035a0abce5e (diff)
mgmt/glusterd: log the rebalance command received properly in the log file
Change-Id: If18d9a49f5a3442755440e08ee7a63f6c6e54c5d BUG: 770058 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/2500 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index a7bac2450..e5a907eaa 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -472,27 +472,32 @@ glusterd_rebalance_cmd_attempted_log (int cmd, char *volname)
gf_cmd_log ("Volume rebalance"," on volname: %s "
"cmd: start fix layout , attempted",
volname);
+ gf_log ("glusterd", GF_LOG_INFO, "Received rebalance "
+ "volume start layout fix on %s", volname);
break;
case GF_DEFRAG_CMD_START_MIGRATE_DATA:
case GF_DEFRAG_CMD_START_MIGRATE_DATA_FORCE:
gf_cmd_log ("Volume rebalance"," on volname: %s "
"cmd: start data migrate attempted",
volname);
+ gf_log ("glusterd", GF_LOG_INFO, "Received rebalance "
+ "volume start migrate data on %s", volname);
break;
case GF_DEFRAG_CMD_START:
gf_cmd_log ("Volume rebalance"," on volname: %s "
"cmd: start, attempted", volname);
+ gf_log ("glusterd", GF_LOG_INFO, "Received rebalance "
+ "volume start on %s", volname);
break;
case GF_DEFRAG_CMD_STOP:
gf_cmd_log ("Volume rebalance"," on volname: %s "
"cmd: stop, attempted", volname);
+ gf_log ("glusterd", GF_LOG_INFO, "Received rebalance "
+ "volume stop on %s", volname);
break;
default:
break;
}
-
- gf_log ("glusterd", GF_LOG_INFO, "Received rebalance volume %d on %s",
- cmd, volname);
}
void