d362be7d32079ac1390d67056ce107bfbca2c937 wasn't well thought out.
Subsequent commits depend on ctdb_counter_init() taking an argument,
so this makes those cases work.
Signed-off-by: Martin Schwenke <martin@meltin.net>
mkdir -p "${_counter_file%/*}" # dirname
}
ctdb_counter_init () {
- _ctdb_counter_common "$@"
+ _ctdb_counter_common "$1"
>"$_counter_file"
}
ctdb_counter_incr () {
- _ctdb_counter_common "$@"
+ _ctdb_counter_common "$1"
# unary counting!
echo -n 1 >> "$_counter_file"
}
ctdb_check_counter_limit () {
- _ctdb_counter_common "$@"
+ _ctdb_counter_common
_limit="${1:-${service_fail_limit}}"
_quiet="$2"
fi
}
ctdb_check_counter_equal () {
- _ctdb_counter_common "$@"
+ _ctdb_counter_common
_limit=$1