Fix LWLockRelease() call in unset_bdr_failover_handler()

This commit is contained in:
Ian Barwick
2018-10-08 09:36:50 +09:00
parent 40e94635b2
commit fd66d93937

View File

@@ -492,10 +492,10 @@ unset_bdr_failover_handler(PG_FUNCTION_ARGS)
LWLockAcquire(shared_state->lock, LW_EXCLUSIVE); LWLockAcquire(shared_state->lock, LW_EXCLUSIVE);
shared_state->bdr_failover_handler = UNKNOWN_NODE_ID; shared_state->bdr_failover_handler = UNKNOWN_NODE_ID;
LWLockRelease(shared_state->lock);
} }
LWLockRelease(shared_state->lock);
PG_RETURN_VOID(); PG_RETURN_VOID();
} }