mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
ctdb-recoverd: Drop redundant condition in election handler
Election packets from the current node are ignored at the beginning of the function, so this does not need to be checked. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
c75fdf208f
commit
2c72c9de48
@ -2748,8 +2748,7 @@ static void election_handler(struct ctdb_context *ctdb, uint64_t srvid,
|
||||
|
||||
if (ctdb->recovery_lock_file != NULL) {
|
||||
/* Release the recovery lock file */
|
||||
if (em->pnn != ctdb->pnn &&
|
||||
ctdb_recovery_have_lock(ctdb)) {
|
||||
if (ctdb_recovery_have_lock(ctdb)) {
|
||||
ctdb_recovery_unlock(ctdb);
|
||||
unban_all_nodes(ctdb);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user