Content-Length: 275535 | pFad | http://github.com/postgrespro/postgres_cluster/commit/d98e2585f00e3e336c1ae4c298019bf9a111d3cf

DC allow replication session to be set in several backends · postgrespro/postgres_cluster@d98e258 · GitHub
Skip to content

Commit d98e258

Browse files
committed
allow replication session to be set in several backends
1 parent 392ddde commit d98e258

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

multimaster.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3813,7 +3813,7 @@ void MtmSetupReplicationHooks(struct PGLogicalHooks* hooks)
38133813
*/
38143814
void MtmBeginSession(int nodeId)
38153815
{
3816-
MtmLockNode(nodeId, LW_EXCLUSIVE);
3816+
// MtmLockNode(nodeId, LW_EXCLUSIVE);
38173817
Assert(replorigen_session_origen == InvalidRepOriginId);
38183818
replorigen_session_origen = Mtm->nodes[nodeId-1].origenId;
38193819
Assert(replorigen_session_origen != InvalidRepOriginId);
@@ -3833,9 +3833,9 @@ void MtmEndSession(int nodeId, bool unlock)
38333833
replorigen_session_origen_lsn = INVALID_LSN;
38343834
replorigen_session_origen_timestamp = 0;
38353835
replorigen_session_reset();
3836-
if (unlock) {
3837-
MtmUnlockNode(nodeId);
3838-
}
3836+
// if (unlock) {
3837+
// MtmUnlockNode(nodeId);
3838+
// }
38393839
MTM_LOG3("%d: End reset replorigen session: %d", MyProcPid, replorigen_session_origen);
38403840
}
38413841
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/d98e2585f00e3e336c1ae4c298019bf9a111d3cf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy