summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2021-10-29 17:29:34 +0000
committerRobert Haas2021-10-29 17:38:50 +0000
commitb3b4d93a9b0612f17d777d54cac1a0dfa96067d4 (patch)
tree96780845d8b046e851b324f9b7c2bdc8501dcf12
parenteae4425998305d8f03cca9f0334d08d0cb0819eb (diff)
Make ThisTimeLineID static.ThisTimeLineID3
It's no longer used outside xlog.c
-rw-r--r--src/backend/access/transam/xlog.c2
-rw-r--r--src/include/access/xlog.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 53e31070e4..ef6e9f254c 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -192,7 +192,7 @@ CheckpointStatsData CheckpointStats;
* ThisTimeLineID will be same in all backends --- it identifies current
* WAL timeline for the database system.
*/
-TimeLineID ThisTimeLineID = 0;
+static TimeLineID ThisTimeLineID = 0;
static XLogRecPtr LastRec;
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index c36d688401..e56e2ae529 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -29,8 +29,6 @@
#define SYNC_METHOD_OPEN_DSYNC 4 /* for O_DSYNC */
extern int sync_method;
-extern PGDLLIMPORT TimeLineID ThisTimeLineID; /* current TLI */
-
/*
* Recovery target type.
* Only set during a Point in Time recovery, not when in standby mode.