Skip to content

Commit 1a76ebb

Browse files
committed
Add origin traces in prepare
1 parent 23159e1 commit 1a76ebb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/access/transam/twophase.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,9 @@ EndPrepare(GlobalTransaction gxact)
10651065
/* dump transaction origin information */
10661066
if (replorigin_session_origin != InvalidRepOriginId)
10671067
{
1068+
elog(LOG, "EndPrepare of %d (%s): replorigin_session_origin=%d, replorigin_session_origin_lsn=%ld",
1069+
gxact->xid, gxact->gid,
1070+
replorigin_session_origin, replorigin_session_origin_lsn);
10681071
xl_xinfo.xinfo |= XACT_XINFO_HAS_ORIGIN;
10691072
Assert(replorigin_session_origin_lsn != 0);
10701073
xl_origin.origin_lsn = replorigin_session_origin_lsn;

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