]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: Add invalid_records flag to ctdb_db_context
authorAmitay Isaacs <amitay@gmail.com>
Wed, 14 Feb 2018 03:29:18 +0000 (14:29 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 9 Oct 2018 09:29:25 +0000 (11:29 +0200)
If a node becomes INACTIVE, then all the records in volatile databases
are invalidated.  This avoids the need to include records from such
nodes during subsequent recovery after the node comes out INACTIVE state.

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

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 71896fddf10a92237d332779ccbb26c059caa649)

ctdb/include/ctdb_private.h

index 25d00476be2434cc8b6164176b10db40659c3b01..b88cd82b999012374441d2097defc16fa5125c22 100644 (file)
@@ -387,6 +387,7 @@ struct ctdb_db_context {
        uint32_t freeze_transaction_id;
        uint32_t generation;
 
+       bool invalid_records;
        bool push_started;
        void *push_state;