File tree 1 file changed +2
-8
lines changed
src/backend/access/transam 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,6 @@ static TransactionId *ParallelCurrentXids;
135
135
*/
136
136
int MyXactFlags ;
137
137
138
- XLogRecPtr maxLSN = InvalidXLogRecPtr ;
139
-
140
138
/*
141
139
* transaction states - transaction state from server perspective
142
140
*/
@@ -1361,7 +1359,8 @@ RecordTransactionCommit(void)
1361
1359
bool RelcacheInitFileInval = false;
1362
1360
bool wrote_xlog ;
1363
1361
bool should_wait = false;
1364
- XLogRecPtr remoteFlushLSN ;
1362
+ XLogRecPtr remoteFlushLSN ;
1363
+ XLogRecPtr maxLSN = GetCurrentSnapshotLSN ();
1365
1364
1366
1365
/*
1367
1366
* Log pending invalidations for logical decoding of in-progress
@@ -2097,11 +2096,6 @@ StartTransaction(void)
2097
2096
TransactionState s ;
2098
2097
VirtualTransactionId vxid ;
2099
2098
2100
- //maxLSN = XLogGetMaxLSN(NULL);
2101
- //maxLSN = GetXLogInsertRecPtr();
2102
- maxLSN = GetCurrentSnapshotLSN ();
2103
- //elog(INFO, "maxlsn init");
2104
-
2105
2099
/*
2106
2100
* Let's just make sure the state stack is empty
2107
2101
*/
You can’t perform that action at this time.
0 commit comments