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 14:29:10 +0000 (14:29 +0000)
commitff4ed4d760a61e59d2e23f1e3d956308585b846d
tree401c9b956b6a3dde5d6b300159a9321951c94aa3
parent279187965b8b2adbd2939bf2a9e587edce04431d
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