From fd66d939370045dbb858c799aebb0048bbec796c Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 8 Oct 2018 09:36:50 +0900 Subject: [PATCH] Fix LWLockRelease() call in unset_bdr_failover_handler() --- repmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index 4461a354..001c2848 100644 --- a/repmgr.c +++ b/repmgr.c @@ -492,10 +492,10 @@ 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(); }