notifyd: Broadcast to all connected nodes
authorAmitay Isaacs <amitay@gmail.com>
Thu, 28 Sep 2017 01:44:50 +0000 (11:44 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 29 Sep 2017 06:38:10 +0000 (08:38 +0200)
CTDB_BROADCAST_VNNMAP includes only the nodes with lmaster roles.
CTDB_BROADCAST_CONNECTED includes all the running nodes.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Sep 29 08:38:10 CEST 2017 on sn-devel-144

source3/smbd/notifyd/notifyd.c

index f645781afea6f899b6cfe132dfb0d30acb10fc3f..e4e5c785472cd25f2bcd0423690c4de4210e2634 100644 (file)
@@ -81,7 +81,7 @@ struct notifyd_state {
         * broadcasts its messaging_reclog to every other notifyd in
         * the cluster. This is done by making ctdb send a message to
         * srvid CTDB_SRVID_SAMBA_NOTIFY_PROXY with destination node
-        * number CTDB_BROADCAST_VNNMAP. Everybody in the cluster who
+        * number CTDB_BROADCAST_CONNECTED. Everybody in the cluster who
         * had called register_with_ctdbd this srvid will receive the
         * broadcasts.
         *
@@ -999,7 +999,7 @@ static void notifyd_broadcast_reclog(struct ctdbd_connection *ctdbd_conn,
                                  .iov_len = blob.length };
 
        ret = ctdbd_messaging_send_iov(
-               ctdbd_conn, CTDB_BROADCAST_VNNMAP,
+               ctdbd_conn, CTDB_BROADCAST_CONNECTED,
                CTDB_SRVID_SAMBA_NOTIFY_PROXY, iov, ARRAY_SIZE(iov));
        TALLOC_FREE(blob.data);
        if (ret != 0) {