Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0a7cb85

Browse files
committed
Make TriggerFile variable static. It's not used outside xlog.c.
Fujii Masao
1 parent 346d7cd commit 0a7cb85

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.420 2010/06/10 07:00:27 heikki Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.421 2010/06/10 07:49:23 heikki Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -190,7 +190,7 @@ static TimestampTz recoveryLastXTime = 0;
190190
/* options taken from recovery.conf for XLOG streaming */
191191
static bool StandbyMode = false;
192192
static char *PrimaryConnInfo = NULL;
193-
char *TriggerFile = NULL;
193+
static char *TriggerFile = NULL;
194194

195195
/* if recoveryStopsHere returns true, it saves actual stop xid/time here */
196196
static TransactionId recoveryStopXid;

src/include/access/xlog.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.111 2010/04/29 21:36:19 tgl Exp $
9+
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.112 2010/06/10 07:49:23 heikki Exp $
1010
*/
1111
#ifndef XLOG_H
1212
#define XLOG_H
@@ -258,10 +258,6 @@ typedef struct CheckpointStatsData
258258

259259
extern CheckpointStatsData CheckpointStats;
260260

261-
/* Read from recovery.conf, in startup process */
262-
extern char *TriggerFile;
263-
264-
265261
extern XLogRecPtr XLogInsert(RmgrId rmid, uint8 info, XLogRecData *rdata);
266262
extern void XLogFlush(XLogRecPtr RecPtr);
267263
extern void XLogBackgroundFlush(void);

0 commit comments

Comments
 (0)