summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-08-08 16:02:44 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-08-14 15:57:04 +1000
commite6ce2f55ef9a7180e495fd1cdc8408a2a60dc87a (patch)
tree16f0e137978d745e5a5ba6d28cc38662c8c7b44c
parent35d9631eda65f73a8e6eb7e89142201c2d0d8d04 (diff)
eventscripts: Improve message logged when a counter hits a limit
It should print the actual number of consecutive failures rather than the limit. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ff5f0d1e29af2b293e30cdc54bed03a644be7038)
-rwxr-xr-xctdb/config/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions
index 5aee5e5718..d9cf127967 100755
--- a/ctdb/config/functions
+++ b/ctdb/config/functions
@@ -1080,7 +1080,7 @@ ctdb_check_counter () {
fi
if $_hit ; then
if [ "$_msg" = "error" ] ; then
- echo "ERROR: $_limit consecutive failures for $_service_name, marking node unhealthy"
+ echo "ERROR: $_size consecutive failures for $_service_name, marking node unhealthy"
exit 1
else
return 1