]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: rename has_ctdb_public_ip to has_cluster_movable_ip
authorDavid Disseldorp <ddiss@samba.org>
Sun, 6 Sep 2020 20:59:20 +0000 (22:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Oct 2020 11:07:36 +0000 (11:07 +0000)
This provides a little more detail to what's actually being tracked
with this boolean.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/globals.h
source3/smbd/process.c
source3/smbd/smb2_server.c

index fcf33a699c684c5eb33d728c01f7957c742717e4..4685b6971d313059b1e15adc0a241c4caa8f7297 100644 (file)
@@ -361,7 +361,7 @@ struct smbXsrv_connection {
        const struct tsocket_address *local_address;
        const struct tsocket_address *remote_address;
        const char *remote_hostname;
-       bool has_ctdb_public_ip;
+       bool has_cluster_movable_ip;
 
        enum protocol_types protocol;
 
index 2b2a2e09d0539e598684b81ffb2adda1e00e8cb4..7511b6155203d6abd64bbf38ff50ce9656bdbe44 100644 (file)
@@ -2813,10 +2813,10 @@ static NTSTATUS smbd_register_ips(struct smbXsrv_connection *xconn,
                        return NT_STATUS_INTERNAL_ERROR;
                }
 
-               xconn->has_ctdb_public_ip = ctdbd_find_in_public_ips(ips, srv);
+               xconn->has_cluster_movable_ip = ctdbd_find_in_public_ips(ips, srv);
                TALLOC_FREE(ips);
-               if (xconn->has_ctdb_public_ip) {
-                       DBG_DEBUG("CTDB public ip on %s\n",
+               if (xconn->has_cluster_movable_ip) {
+                       DBG_DEBUG("cluster movable IP on %s\n",
                                  smbXsrv_connection_dbg(xconn));
                }
        }
index cf9de185c1f40b504a11138b8fc56b4a017696cf..2750c93b1e8019ccaedc374e828343d47f595851 100644 (file)
@@ -1635,9 +1635,9 @@ void smbd_server_connection_terminate_ex(struct smbXsrv_connection *xconn,
                  smbXsrv_connection_dbg(xconn), num_ok,
                  reason, location);
 
-       if (xconn->has_ctdb_public_ip) {
+       if (xconn->has_cluster_movable_ip) {
                /*
-                * If the connection has a ctdb public address
+                * If the connection has a movable cluster public address
                 * we disconnect all client connections,
                 * as the public address might be moved to
                 * a different node.