Skip to content

Commit 39b8cc9

Browse files
committed
Be sure to release LogicalRepLauncherLock in DROP SUBSCRIPTION command.
Previously DROP SUBSCRIPTION command forgot to release the lock at all. Original patches by Kyotaro Horiguchi and Michael Paquier, but I didn't use them. Discussion: http://postgr.es/m/20170201.173623.66249355.horiguchi.kyotaro@lab.ntt.co.jp
1 parent 14e9b18 commit 39b8cc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/commands/subscriptioncmds.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ DropSubscription(DropSubscriptionStmt *stmt)
514514
/* Kill the apply worker so that the slot becomes accessible. */
515515
logicalrep_worker_stop(subid);
516516

517+
LWLockRelease(LogicalRepLauncherLock);
518+
517519
/* Remove the origin tracking if exists. */
518520
snprintf(originname, sizeof(originname), "pg_%u", subid);
519521
originid = replorigin_by_name(originname, true);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy