extern XLogRecPtr XactLastRecEnd;
-/*
- * Replication mode. This is used to identify how long transaction
- * commit should wait for replication.
- *
- * REPLICATION_MODE_ASYNC doesn't make transaction commit wait for
- * replication, i.e., asynchronous replication.
- *
- * REPLICATION_MODE_RECV makes transaction commit wait for XLOG
- * records to be received on the standby.
- *
- * REPLICATION_MODE_FSYNC makes transaction commit wait for XLOG
- * records to be received and fsync'd on the standby.
- *
- * REPLICATION_MODE_APPLY makes transaction commit wait for XLOG
- * records to be received, fsync'd and applied on the standby.
- */
-typedef enum ReplicationMode
-{
- InvalidReplicationMode = -1,
- REPLICATION_MODE_ASYNC = 0,
- REPLICATION_MODE_RECV,
- REPLICATION_MODE_FSYNC,
- REPLICATION_MODE_APPLY
-
- /*
- * NOTE: if you add a new mode, change MAXREPLICATIONMODE below
- * and update the ReplicationModeNames array in xlog.c
- */
-} ReplicationMode;
-
-#define MAXREPLICATIONMODE REPLICATION_MODE_APPLY
-
-extern const char *ReplicationModeNames[];
-extern ReplicationMode rplMode;
-
/* these variables are GUC parameters related to XLOG */
extern int CheckPointSegments;
extern int wal_keep_segments;
extern void StartupProcessMain(void);
extern void WakeupRecovery(void);
-extern ReplicationMode ReplicationModeNameGetValue(char *name);
-
#endif /* XLOG_H */