summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdb_tunables.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2011-11-28 13:56:30 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2011-11-30 08:48:23 +1100
commit0420449a6c4eb45f096ce756ed1d7218a94bcd5e (patch)
tree35f9f4113dae751817429b662200b1b7a0416062 /ctdb/server/ctdb_tunables.c
parent3cbff2edd82ddc8f1d44696e35cf6e8b355cf6ae (diff)
downloadsamba-0420449a6c4eb45f096ce756ed1d7218a94bcd5e.tar.gz
samba-0420449a6c4eb45f096ce756ed1d7218a94bcd5e.tar.xz
samba-0420449a6c4eb45f096ce756ed1d7218a94bcd5e.zip
Recover Persistent database DB by DB and not record by record
Add a new tunable that changes the mode how persistent databases are recovered. RecoveryPDBBySeqNum When set to 1, persistent databases will be recovered in whole from the node which has the highest "__db_sequence_number__" record. This record is managed by samba for those databases where we do persistent writes and have inter-record relations. For these databases we do not want the usual "blend records from all nodes based on individual record RSN" but instead a mode where we pick one instance of the persistent database. If no node was found with a "__db_sequence_number__" record at all, we fail back to the original "recover records independently based on record RSN". Some persistent databases do not contain record interrelations and as such does not contain this special record at all. (This used to be ctdb commit 502150c764298a9fa8c4d8aa445bf7d85d4ee9dc)
Diffstat (limited to 'ctdb/server/ctdb_tunables.c')
-rw-r--r--ctdb/server/ctdb_tunables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_tunables.c b/ctdb/server/ctdb_tunables.c
index ef86051cec..cfc80e5ca9 100644
--- a/ctdb/server/ctdb_tunables.c
+++ b/ctdb/server/ctdb_tunables.c
@@ -69,7 +69,8 @@ static const struct {
{ "AllowUnhealthyDBRead", 0, offsetof(struct ctdb_tunable, allow_unhealthy_db_read) },
{ "StatHistoryInterval", 1, offsetof(struct ctdb_tunable, stat_history_interval) },
{ "DeferredAttachTO", 120, offsetof(struct ctdb_tunable, deferred_attach_timeout) },
- { "AllowClientDBAttach", 1, offsetof(struct ctdb_tunable, allow_client_db_attach) }
+ { "AllowClientDBAttach", 1, offsetof(struct ctdb_tunable, allow_client_db_attach) },
+ { "RecoverPDBBySeqNum", 0, offsetof(struct ctdb_tunable, recover_pdb_by_seqnum) }
};
/*