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

Commitf975fc3

Browse files
committed
Remove global variable "LastRec" in xlog.c
This variable is used only by StartupXLOG() now, so let's make it localto simplify the code.Author: Amul SulReviewed-by: Tom Lane, Michael PaquierDiscussion:https://postgr.es/m/CAAJ_b96Qd023itERBRN9Z7P2saNDT3CYvGuMO8RXwndVNN6z7g@mail.gmail.com
1 parentad26ee2 commitf975fc3

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ const struct config_enum_entry recovery_target_action_options[] = {
191191
*/
192192
CheckpointStatsDataCheckpointStats;
193193

194-
staticXLogRecPtrLastRec;
195-
196194
/* Local copy of WalRcv->flushedUpto */
197195
staticXLogRecPtrflushedUpto=0;
198196
staticTimeLineIDreceiveTLI=0;
@@ -6679,6 +6677,7 @@ StartupXLOG(void)
66796677
boolhaveBackupLabel= false;
66806678
boolhaveTblspcMap= false;
66816679
XLogRecPtrRecPtr,
6680+
LastRec,
66826681
checkPointLoc,
66836682
EndOfLog;
66846683
TimeLineIDEndOfLogTLI;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp