From: Robert Haas Date: Fri, 29 Oct 2021 17:29:34 +0000 (-0400) Subject: Make ThisTimeLineID static. X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FThisTimeLineID3;p=users%2Frhaas%2Fpostgres.git Make ThisTimeLineID static. It's no longer used outside xlog.c --- 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.