ctdb-recovery: Replace use of ctdb_dbid_map with local db_list
commit62bb07b7b720538bef0e429dfac02cf250a6ee51
authorMartin Schwenke <martin@meltin.net>
Fri, 21 Feb 2020 01:24:39 +0000 (21 12:24 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 30 Mar 2020 10:08:25 +0000 (30 10:08 +0000)
tree8c47a73b63760fc057ed0c7edd8b71b8e329daf1
parent92b0fcf3a4ef1eab39c12ed289af0a8fddaf8165
ctdb-recovery: Replace use of ctdb_dbid_map with local db_list

This will be used to build a merged list of databases from all nodes,
allowing the recovery helper to create missing databases.

It would be possible to also include the db_name field in this
structure but that would cause a lot of churn.  This field is used
locally in the recovery of each database so can continue to live in
the relevant state structure(s).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14294

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 4c0b9c36050a0ed8a180d4ac1853224089528e8e)
ctdb/server/ctdb_recovery_helper.c