aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/functioncmds.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-04-19 08:49:49 +0530
committerAmit Kapila <akapila@postgresql.org>2022-04-19 08:49:49 +0530
commitdd4ab6fd6528e160571986fa8817cee9f2645aa8 (patch)
treef229b95dc56cda074b612d823ff1f2d0d0efeb82 /src/backend/commands/functioncmds.c
parent587de223f03e6086d511dab16b17406eb21277ce (diff)
downloadpostgresql-dd4ab6fd6528e160571986fa8817cee9f2645aa8.tar.gz
postgresql-dd4ab6fd6528e160571986fa8817cee9f2645aa8.zip
Fix the check to limit sync workers.
We don't allow to invoke more sync workers once we have reached the sync worker limit per subscription. But the check to enforce this also doesn't allow to launch an apply worker if it gets restarted. This code was introduced by commit de43897122 but we caught the problem only with the test added by recent commit c91f71b9dc which started failing occasionally in the buildfarm. As per buildfarm. Diagnosed-by: Amit Kapila, Masahiko Sawada, Tomas Vondra Author: Amit Kapila Backpatch-through: 10 Discussion: https://postgr.es/m/CAH2L28vddB_NFdRVpuyRBJEBWjz4BSyTB=_ektNRH8NJ1jf95g@mail.gmail.com https://postgr.es/m/f90d2b03-4462-ce95-a524-d91464e797c8@enterprisedb.com
Diffstat (limited to 'src/backend/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions