From: Martin Schwenke Date: Thu, 16 Oct 2025 02:51:27 +0000 (+1100) Subject: ctdb-scripts: Avoid printing a message if no connections X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01d3d25c0139a3dd49a2322a9416698d08733377;p=thirdparty%2Fsamba.git ctdb-scripts: Avoid printing a message if no connections BUG: https://bugzilla.samba.org/show_bug.cgi?id=15935 Signed-off-by: Martin Schwenke Reviewed-by: Anoop C S --- diff --git a/ctdb/config/functions b/ctdb/config/functions index 1d80c61e5f2..f5194237843 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -630,6 +630,10 @@ tickle_tcp_connections() _conns=$(get_tcp_connections_for_ip "$_ip" | awk '{ print $1, $2 ; print $2, $1 }') + if [ -z "$_conns" ]; then + return + fi + echo "$_conns" | awk '{ print "Tickle TCP connection", $1, $2 }' echo "$_conns" | ctdb tickle }