ctdb-daemon: Use ctdb_connection_to_buf() to simplify
authorMartin Schwenke <mschwenke@ddn.com>
Tue, 12 Dec 2023 23:22:04 +0000 (10:22 +1100)
committerJule Anger <janger@samba.org>
Sat, 16 Dec 2023 15:07:15 +0000 (15:07 +0000)
commit2e93e358ef9f3d55065cd5e9ad1b03126df06b63
tree2fe36ae63c0f25c36285a6729592a886b061219b
parent2640bae75e3abab1a9959b2de14dad29020852de
ctdb-daemon: Use ctdb_connection_to_buf() to simplify

The one case that is no longer handled specially is when the
destination address is IPv4 loopback.  This may previously have been
used to avoid flooding the logs when testing.  However, that seems
unnecessary - if testing with 127.0.0.1 then make it a public address.

Modernise debug while touching the code.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15523

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 8fc3872557f715dc38f9898754a785fd073ace96)
ctdb/server/ctdb_takeover.c