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

Petr Jelinek
This commit is contained in:
Fujii Masao 2017-01-24 12:41:09 +09:00
parent 73293ebae2
commit dc82f5a640
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ logicalrep_worker_launch(Oid dbid, Oid subid, const char *subname, Oid userid)
/* Bail if not found */
if (worker == NULL)
{
LWLockRelease(LogicalRepWorkerLock);
ereport(WARNING,
(errcode(ERRCODE_CONFIGURATION_LIMIT_EXCEEDED),
errmsg("out of logical replication workers slots"),