diff options
author | Martin Schwenke <martin@meltin.net> | 2018-01-19 14:55:21 +1100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-10-26 12:17:33 +0000 |
commit | 91a8a9a98508aedf3d07bf83e5e53342fe74bdf5 (patch) | |
tree | 9cdcd006aab79578a0ee874ec166403b5a3fdfcf /ctdb | |
parent | f4ce7990607b4e0c856d27da1a4eef993a04ea51 (diff) | |
download | samba-91a8a9a98508aedf3d07bf83e5e53342fe74bdf5.tar.gz |
ctdb-recoverd: Drop unnecessary code
This has already been done in update_flags().
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14513
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 3ab52b528673e08caa66f00e963528c591a84fe1)
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/server/ctdb_recoverd.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c index f825427e7a3..d42333b860d 100644 --- a/ctdb/server/ctdb_recoverd.c +++ b/ctdb/server/ctdb_recoverd.c @@ -2667,20 +2667,6 @@ static void main_loop(struct ctdb_context *ctdb, struct ctdb_recoverd *rec, } } - /* - * Update node flags obtained from each active node. This ensure we have - * up-to-date information for all the nodes. - */ - for (j=0; j<nodemap->num; j++) { - if (nodemap->nodes[j].pnn == ctdb->pnn) { - continue; - } - if (nodemap->nodes[j].flags & NODE_FLAGS_INACTIVE) { - continue; - } - nodemap->nodes[j].flags = remote_nodemaps[j]->nodes[j].flags; - } - for (j=0; j<nodemap->num; j++) { if (nodemap->nodes[j].pnn == ctdb->pnn) { continue; |