]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-recoverd: Broadcast takeover run message when verifying IPs
authorMartin Schwenke <martin@meltin.net>
Tue, 28 Jul 2020 21:02:45 +0000 (07:02 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 18 Aug 2020 06:24:11 +0000 (06:24 +0000)
This makes it consistent with the monitoring code.  If the master has
changed then this means the master will always get the message.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Aug 18 06:24:11 UTC 2020 on sn-devel-184

ctdb/server/ctdb_recoverd.c

index f825427e7a39a8bf620666ac0a774a02bef5f71b..aeb23276fe7d49fcb5e32a7e2ca3eec7d82dfe71 100644 (file)
@@ -2204,10 +2204,12 @@ done:
                data.dptr = (uint8_t *)&rd;
                data.dsize = sizeof(rd);
 
-               ret = ctdb_client_send_message(ctdb, rec->recmaster, CTDB_SRVID_TAKEOVER_RUN, data);
+               ret = ctdb_client_send_message(ctdb,
+                                              CTDB_BROADCAST_CONNECTED,
+                                              CTDB_SRVID_TAKEOVER_RUN,
+                                              data);
                if (ret != 0) {
-                       DEBUG(DEBUG_ERR,
-                             ("Failed to send takeover run request\n"));
+                       D_ERR("Failed to send takeover run request\n");
                }
        }
        talloc_free(mem_ctx);