Skip to content

Commit 7b06c79

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 parent 3326678 commit 7b06c79

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

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