From d26141b8abf8c20f5154d0b3bfb75aca9824d770 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 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(); }