It isn't possible to hold the recovery lock without having a lock file
set.
This is part of a goal to generalise the recovery lock mechanism to
just use a helper program, which may use a lock file or may use
something else.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
/* we didn't win */
TALLOC_FREE(rec->send_election_te);
- if (ctdb->recovery_lock_file != NULL) {
- /* Release the recovery lock file */
- if (ctdb_recovery_have_lock(ctdb)) {
- ctdb_recovery_unlock(ctdb);
- unban_all_nodes(ctdb);
- }
+ /* Release the recovery lock file */
+ if (ctdb_recovery_have_lock(ctdb)) {
+ ctdb_recovery_unlock(ctdb);
+ unban_all_nodes(ctdb);
}
/* ok, let that guy become recmaster then */