diff --git a/repmgr.c b/repmgr.c index 80fb0fe7..ff9b927d 100644 --- a/repmgr.c +++ b/repmgr.c @@ -416,9 +416,9 @@ unset_bdr_failover_handler(PG_FUNCTION_ARGS) LWLockAcquire(shared_state->lock, LW_EXCLUSIVE); shared_state->bdr_failover_handler = UNKNOWN_NODE_ID; - - LWLockRelease(shared_state->lock); } + LWLockRelease(shared_state->lock); + PG_RETURN_VOID(); }