Fix LWLockRelease() call in unset_bdr_failover_handler()

This commit is contained in:
Ian Barwick
2018-10-08 09:36:50 +09:00
parent 4a6b5fe913
commit d26141b8ab

View File

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