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)
committerAmitay Isaacs <amitay@samba.org>
Mon, 8 Oct 2018 00:46:20 +0000 (02:46 +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>
ctdb/include/ctdb_private.h

index b3d2e146dcf19490dbf4174d71ac93cf2c73df34..ae154a08a0cbc1f1dde5469150790a1979215c26 100644 (file)
@@ -386,6 +386,7 @@ struct ctdb_db_context {
        uint32_t freeze_transaction_id;
        uint32_t generation;
 
+       bool invalid_records;
        bool push_started;
        void *push_state;