summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier2021-11-17 02:04:18 +0000
committerMichael Paquier2021-11-17 02:04:18 +0000
commitf975fc3a3542005ed0dd689bdb5bd9ed4e1f4d52 (patch)
treec20dae47146cd48cf7ee92585df3e20b0bd005a2 /src
parentad26ee28250c4cd357a7420161a2be321c3dd536 (diff)
Remove global variable "LastRec" in xlog.c
This variable is used only by StartupXLOG() now, so let's make it local to simplify the code. Author: Amul Sul Reviewed-by: Tom Lane, Michael Paquier Discussion: https://postgr.es/m/CAAJ_b96Qd023itERBRN9Z7P2saNDT3CYvGuMO8RXwndVNN6z7g@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 355d1737c39..16164483688 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -191,8 +191,6 @@ const struct config_enum_entry recovery_target_action_options[] = {
*/
CheckpointStatsData CheckpointStats;
-static XLogRecPtr LastRec;
-
/* Local copy of WalRcv->flushedUpto */
static XLogRecPtr flushedUpto = 0;
static TimeLineID receiveTLI = 0;
@@ -6679,6 +6677,7 @@ StartupXLOG(void)
bool haveBackupLabel = false;
bool haveTblspcMap = false;
XLogRecPtr RecPtr,
+ LastRec,
checkPointLoc,
EndOfLog;
TimeLineID EndOfLogTLI;