mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
ctdb-scripts: Add an early exit to statd-callout's notify case
If $statd_state is empty then the loop will run once and print spurious errors. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
f279a97ca4
commit
a6dbe126f5
@ -148,6 +148,7 @@ case "$1" in
|
||||
awk -v pnn=$pnn 'pnn == $2 { printf "s/^key.*=.*statd-state@\\(%s\\)@\\([^\"]*\\).*/\\1 \\2/p\n", gensub(/\./, "\\\\.", "g", $1) }')
|
||||
|
||||
statd_state=$(ctdb catdb ctdb.tdb | sed -n "$sed_expr" | sort)
|
||||
[ -n "$statd_state" ] || exit 0
|
||||
|
||||
# The following is dangerous if this script times out before
|
||||
# all of the smnotify commands are run. Revert to individual
|
||||
|
Loading…
x
Reference in New Issue
Block a user