1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

ctdb-recoverd: Improve election win messages

Logging that node has lost election is less useful than knowing which
node has won the election.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2016-07-04 14:30:17 +10:00 committed by Martin Schwenke
parent 978bc8681e
commit e6818c8e3c

View File

@ -1606,12 +1606,14 @@ int32_t ctdb_control_set_recmaster(struct ctdb_context *ctdb, uint32_t opcode, T
if (ctdb->pnn != new_recmaster && ctdb->recovery_master == ctdb->pnn) {
DEBUG(DEBUG_NOTICE,
("This node (%u) is no longer the recovery master\n", ctdb->pnn));
("Remote node (%u) is now the recovery master\n",
new_recmaster));
}
if (ctdb->pnn == new_recmaster && ctdb->recovery_master != new_recmaster) {
DEBUG(DEBUG_NOTICE,
("This node (%u) is now the recovery master\n", ctdb->pnn));
("This node (%u) is now the recovery master\n",
ctdb->pnn));
}
ctdb->recovery_master = new_recmaster;