mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
ctdb-recoverd: Consistently log start of election
Elections should now be quite rare, so always log when one begins. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14958 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
bf55a0117d
commit
0e74e03c9c
@ -1867,7 +1867,7 @@ static void force_election(struct ctdb_recoverd *rec)
|
||||
int ret;
|
||||
struct ctdb_context *ctdb = rec->ctdb;
|
||||
|
||||
DEBUG(DEBUG_INFO,(__location__ " Force an election\n"));
|
||||
D_ERR("Start election\n");
|
||||
|
||||
/* set all nodes to recovery mode to stop all internode traffic */
|
||||
ret = set_recovery_mode(ctdb, rec, rec->nodemap, CTDB_RECOVERY_ACTIVE);
|
||||
@ -1978,7 +1978,8 @@ static void leader_broadcast_timeout_handler(struct tevent_context *ev,
|
||||
|
||||
rec->leader_broadcast_timeout_te = NULL;
|
||||
|
||||
D_NOTICE("Leader broadcast timeout. Force election\n");
|
||||
D_NOTICE("Leader broadcast timeout\n");
|
||||
|
||||
force_election(rec);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user