10000 Computing snapshot lsn at commit · pct960/postgres@8d69020 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d69020

Browse files
committed
Computing snapshot lsn at commit
1 parent 5afae09 commit 8d69020

File tree

1 file changed

+2
-8
lines changed
  • src/backend/access/transam

1 file changed

+2
-8
lines changed

src/backend/access/transam/xact.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ static TransactionId *ParallelCurrentXids;
135135
*/
136136
int MyXactFlags;
137137

138-
XLogRecPtr maxLSN = InvalidXLogRecPtr;
139-
140138
/*
141139
* transaction states - transaction state from server perspective
142140
*/
@@ -1361,7 +1359,8 @@ RecordTransactionCommit(void)
13611359
bool RelcacheInitFileInval = false;
13621360
bool wrote_xlog;
13631361
bool should_wait = false;
1364-
XLogRecPtr remoteFlushLSN;
1362+
XLogRecPtr remoteFlushLSN;
1363+
XLogRecPtr maxLSN = GetCurrentSnapshotLSN();
13651364

13661365
/*
13671366
* Log pending invalidations for logical decoding of in-progress
@@ -2097,11 +2096,6 @@ StartTransaction(void)
20972096
TransactionState s;
20982097
VirtualTransactionId vxid;
20992098

2100-
//maxLSN = XLogGetMaxLSN(NULL);
2101-
//maxLSN = GetXLogInsertRecPtr();
2102-
maxLSN = GetCurrentSnapshotLSN();
2103-
//elog(INFO, "maxlsn init");
2104-
21052099
/*
21062100
* Let's just make sure the state stack is empty
21072101
*/

0 commit comments

Comments
 (0)
0