10000 Change txn visibility · pct960/postgres@85969cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 85969cd

Browse files
committed
Change txn visibility
1 parent 76c2d98 commit 85969cd

File tree

1 file changed

+7
-7
lines changed
  • src/backend/access/transam

1 file changed

+7
-7
lines changed

src/backend/access/transam/xact.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,8 @@ RecordTransactionCommit(void)
16221622
*/
16231623

16241624
//elog(INFO, "xid = (%d), xmin = (%d), xmax = (%d)", xid, MyProc->xmin,XidFromFullTransactionId(ShmemVariableCache->latestCompletedXid));
1625-
if (wrote_xlog && markXidCommitted)
1626-
SyncRepWaitForLSN(XactLastRecEnd, true);
1625+
//if (wrote_xlog && markXidCommitted)
1626+
// SyncRepWaitForLSN(XactLastRecEnd, true);
16271627

16281628
/* remember end of last commit record */
16291629
XactLastCommitEnd = XactLastRecEnd;
@@ -2389,12 +2389,12 @@ CommitTransaction(void)
23892389
*/
23902390
ProcArrayEndTransaction(MyProc, latestXid);
23912391

2392-
//TransactionId xid = GetTopTransactionIdIfAny();
2393-
//bool markXidCommitted = TransactionIdIsValid(xid);
2394-
//bool wrote_xlog = (XactLastCommitEnd != 0);
2392+
TransactionId xid = GetTopTransactionIdIfAny();
2393+
bool markXidCommitted = TransactionIdIsValid(xid);
2394+
bool wrote_xlog = (XactLastCommitEnd != 0);
23952395

2396-
//if (wrote_xlog && markXidCommitted)
2397-
// SyncRepWaitForLSN(XactLastCommitEnd, true);
2396+
if (wrote_xlog && markXidCommitted)
2397+
SyncRepWaitForLSN(XactLastCommitEnd, true);
23982398

23992399
/*
24002400
* This is all post-commit cleanup. Note that if an error is raised here,

0 commit comments

Comments
 (0)
0