Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8893c3a

Browse files
Remove XLogCtl->ckptFullXid.
A few code paths set this variable, but its value is never used.Oversight in commit2fc7af5.Reviewed-by: Aleksander Alekseev <aleksander@tigerdata.com>Discussion:https://postgr.es/m/aHFyE1bs9YR93dQ1%40nathan
1 parent84ce258 commit8893c3a

File tree

1 file changed

+0
-17
lines changed
  • src/backend/access/transam

1 file changed

+0
-17
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ typedef struct XLogCtlData
449449
/* Protected by info_lck: */
450450
XLogwrtRqstLogwrtRqst;
451451
XLogRecPtrRedoRecPtr;/* a recent copy of Insert->RedoRecPtr */
452-
FullTransactionIdckptFullXid;/* nextXid of latest checkpoint */
453452
XLogRecPtrasyncXactLSN;/* LSN of newest async commit/abort */
454453
XLogRecPtrreplicationSlotMinLSN;/* oldest LSN needed by any slot */
455454

@@ -5744,7 +5743,6 @@ StartupXLOG(void)
57445743
SetMultiXactIdLimit(checkPoint.oldestMulti,checkPoint.oldestMultiDB, true);
57455744
SetCommitTsLimit(checkPoint.oldestCommitTsXid,
57465745
checkPoint.newestCommitTsXid);
5747-
XLogCtl->ckptFullXid=checkPoint.nextXid;
57485746

57495747
/*
57505748
* Clear out any old relcache cache files. This is *necessary* if we do
@@ -7437,11 +7435,6 @@ CreateCheckPoint(int flags)
74377435
UpdateControlFile();
74387436
LWLockRelease(ControlFileLock);
74397437

7440-
/* Update shared-memory copy of checkpoint XID/epoch */
7441-
SpinLockAcquire(&XLogCtl->info_lck);
7442-
XLogCtl->ckptFullXid=checkPoint.nextXid;
7443-
SpinLockRelease(&XLogCtl->info_lck);
7444-
74457438
/*
74467439
* We are now done with critical updates; no need for system panic if we
74477440
* have trouble while fooling with old log segments.
@@ -8516,11 +8509,6 @@ xlog_redo(XLogReaderState *record)
85168509
ControlFile->checkPointCopy.nextXid=checkPoint.nextXid;
85178510
LWLockRelease(ControlFileLock);
85188511

8519-
/* Update shared-memory copy of checkpoint XID/epoch */
8520-
SpinLockAcquire(&XLogCtl->info_lck);
8521-
XLogCtl->ckptFullXid=checkPoint.nextXid;
8522-
SpinLockRelease(&XLogCtl->info_lck);
8523-
85248512
/*
85258513
* We should've already switched to the new TLI before replaying this
85268514
* record.
@@ -8577,11 +8565,6 @@ xlog_redo(XLogReaderState *record)
85778565
ControlFile->checkPointCopy.nextXid=checkPoint.nextXid;
85788566
LWLockRelease(ControlFileLock);
85798567

8580-
/* Update shared-memory copy of checkpoint XID/epoch */
8581-
SpinLockAcquire(&XLogCtl->info_lck);
8582-
XLogCtl->ckptFullXid=checkPoint.nextXid;
8583-
SpinLockRelease(&XLogCtl->info_lck);
8584-
85858568
/* TLI should not change in an on-line checkpoint */
85868569
(void)GetCurrentReplayRecPtr(&replayTLI);
85878570
if (checkPoint.ThisTimeLineID!=replayTLI)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp