]> granicus.if.org Git - postgresql/commitdiff
Make TriggerFile variable static. It's not used outside xlog.c.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 10 Jun 2010 07:49:23 +0000 (07:49 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 10 Jun 2010 07:49:23 +0000 (07:49 +0000)
Fujii Masao

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

index ecd7df2107a81b494025e135293966c0c3092ef7..221d3b65e059bb9b7f219c4cdebdaa22a71afe1d 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.420 2010/06/10 07:00:27 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.421 2010/06/10 07:49:23 heikki Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -190,7 +190,7 @@ static TimestampTz recoveryLastXTime = 0;
 /* options taken from recovery.conf for XLOG streaming */
 static bool StandbyMode = false;
 static char *PrimaryConnInfo = NULL;
-char      *TriggerFile = NULL;
+static char *TriggerFile = NULL;
 
 /* if recoveryStopsHere returns true, it saves actual stop xid/time here */
 static TransactionId recoveryStopXid;
index 7dfe03b4be7aa2eb6473d4feb5c0893564412306..1a8f455dba6d617ef71c8385c03ce2fd499a4614 100644 (file)
@@ -6,7 +6,7 @@
  * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.111 2010/04/29 21:36:19 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.112 2010/06/10 07:49:23 heikki Exp $
  */
 #ifndef XLOG_H
 #define XLOG_H
@@ -258,10 +258,6 @@ typedef struct CheckpointStatsData
 
 extern CheckpointStatsData CheckpointStats;
 
-/* Read from recovery.conf, in startup process */
-extern char *TriggerFile;
-
-
 extern XLogRecPtr XLogInsert(RmgrId rmid, uint8 info, XLogRecData *rdata);
 extern void XLogFlush(XLogRecPtr RecPtr);
 extern void XLogBackgroundFlush(void);