summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2018-02-14 14:29:18 +1100
committerKarolin Seeger <kseeger@samba.org>2018-10-09 11:29:25 +0200
commita363e0ce25b5a988cbe4c93ac09c9335e4552413 (patch)
tree2b99664d705a31ead8d0023fd54f9d29f57bb8e3 /ctdb
parented962c85b194ef33c0084d1d344c90ef6b3848f9 (diff)
downloadsamba-a363e0ce25b5a988cbe4c93ac09c9335e4552413.tar.gz
ctdb-daemon: Add invalid_records flag to ctdb_db_context
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)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/include/ctdb_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 25d00476be2..b88cd82b999 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -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;