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

Commit7b06c79

Browse files
committed
[PGPRO-4074] Allow multiple processes acquire the same repl origin.
Slight edit of 3f357ebff64 cherry pick.tags: multimaster(cherry picked from commit d33fc4b8c93971a4bcd8b5900004c3e9cc5a8b54)
1 parent3326678 commit7b06c79

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/backend/replication/logical/origin.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,13 @@ replorigin_session_setup(RepOriginId node)
10951095
if (curstate->roident!=node)
10961096
continue;
10971097

1098-
elseif (curstate->acquired_by!=0)
1098+
/*
1099+
* MTM-CRUTCH.
1100+
*
1101+
* Allow multiple backends (mm parallel workers) to setup same
1102+
* replication session.
1103+
*/
1104+
elseif (curstate->acquired_by!=0&&DetectGlobalDeadLock==NULL)
10991105
{
11001106
ereport(ERROR,
11011107
(errcode(ERRCODE_OBJECT_IN_USE),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp