Commit dc82f5a6 authored by Fujii Masao's avatar Fujii Masao

Be sure to release the lock on failure to launch logical replication worker.

Petr Jelinek
parent 73293eba
...@@ -261,6 +261,7 @@ logicalrep_worker_launch(Oid dbid, Oid subid, const char *subname, Oid userid) ...@@ -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"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment