summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-08-05 13:09:03 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-12 06:27:17 -0700
commit22e30847d3657a60700a9dbfd9467e2dfd5efd89 (patch)
treea39e8041e8dec7259f53cbcc585429e304462106
parentf66089e5d749cf15b8c7d6a46f75655a360d848e (diff)
glusterd: log the full rebalance command issued
Change-Id: I82859dd1211eaff853261555a5ec549efa4559f0 BUG: 2231 Reviewed-on: http://review.gluster.com/170 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <shishirng@gluster.com>
-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 3123e5c..b79dc9b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -609,26 +609,31 @@ 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_NORMAL, "Received rebalance "
+ " volume start-layout-fix on %s",volname);
break;
case GF_DEFRAG_CMD_START_MIGRATE_DATA:
gf_cmd_log ("Volume rebalance"," on volname: %s "
"cmd: start data migrate attempted",
volname);
+ gf_log ("glusterd", GF_LOG_NORMAL, "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_NORMAL, "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_NORMAL, "Received rebalance "
+ " volume stop on %s",volname);
break;
default:
break;
}
-
- gf_log ("glusterd", GF_LOG_NORMAL, "Received rebalance volume %d on %s",
- cmd, volname);
}
void