mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Fix LWLockRelease() call in unset_bdr_failover_handler()
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user