Make ThisTimeLineID static. ThisTimeLineID3
authorRobert Haas <[email protected]>
Fri, 29 Oct 2021 17:29:34 +0000 (13:29 -0400)
committerRobert Haas <[email protected]>
Fri, 29 Oct 2021 17:38:50 +0000 (13:38 -0400)
It's no longer used outside xlog.c

src/backend/access/transam/xlog.c
src/include/access/xlog.h

index 53e31070e45d0afad5a7f92a24060fa03bbf3a60..ef6e9f254ce1cfc004abfdc4570cf8c74e880806 100644 (file)
@@ -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;
 
index c36d688401bed17ac7e1b63c7d7aeb9b8e18e714..e56e2ae529a54383118b0dc709d0a29c54e427c3 100644 (file)
@@ -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.