Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit39b8cc9

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 parent14e9b18 commit39b8cc9

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)

[8]ページ先頭

©2009-2025 Movatter.jp