ctdb-recoverd: Change get_remote_nodemaps() to use connected nodes
commit4c5fde56c309db48a8d6e535564b8effb012c6a9
authorMartin Schwenke <martin@meltin.net>
Thu, 18 Jan 2018 09:02:42 +0000 (18 20:02 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 25 Aug 2020 11:27:18 +0000 (25 11:27 +0000)
treee6dee14a6d58023089f7204c565e634002ab2cbc
parent4aae8adc7182687db73c2e40b4a8a24ce5053d16
ctdb-recoverd: Change get_remote_nodemaps() to use connected nodes

The plan here is to use the nodemaps retrieved by get_remote_nodes()
in update_local_flags().  This will improve efficiency, since
get_remote_nodes() fetches flags from nodes in parallel.  It also
means that get_remote_nodes() can be used exactly once early on in
main_loop() to retrieve remote nodemaps.  Retrieving nodemaps multiple
times is unnecessary and racy - a single monitoring iteration should
not fetch flags multiple times and compare them.

This introduces a temporary behaviour change but it will be of no
consequence when the above changes are made.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14466
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 762d1d8a9605f97973a2c1176de5d29fcc61d15a)
ctdb/server/ctdb_recoverd.c