mirror of
https://github.com/postgres/postgres.git
synced 2025-05-15 19:15:29 +03:00
Be sure to release the lock on failure to launch logical replication worker.
Petr Jelinek
This commit is contained in:
parent
73293ebae2
commit
dc82f5a640
@ -261,6 +261,7 @@ logicalrep_worker_launch(Oid dbid, Oid subid, const char *subname, Oid userid)
|
|||||||
/* Bail if not found */
|
/* Bail if not found */
|
||||||
if (worker == NULL)
|
if (worker == NULL)
|
||||||
{
|
{
|
||||||
|
LWLockRelease(LogicalRepWorkerLock);
|
||||||
ereport(WARNING,
|
ereport(WARNING,
|
||||||
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
|
||||||
errmsg("out of logical replication workers slots"),
|
errmsg("out of logical replication workers slots"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user