diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-07-01 15:10:08 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-07-01 15:10:08 +0200 |
commit | a33969ee918aafdb9086be27d7d63b129b4bfc44 (patch) | |
tree | 6a4bf762cc6e4b3f61953c1b3f57cac7653467f0 | |
parent | 7bdea6263543c0dabf4d374b3c8d2c3a1d91649e (diff) | |
download | postgresql-a33969ee918aafdb9086be27d7d63b129b4bfc44.tar.gz postgresql-a33969ee918aafdb9086be27d7d63b129b4bfc44.zip |
pg_standby: Remove code for .backup files
These files are no longer requested on recovery (since
06f82b29616cd9effcaefd99c6b6e2e80697482f), so the code for handling them
here is useless.
Author: Yugo Nagata <nagata@sraoss.co.jp>
-rw-r--r-- | contrib/pg_standby/pg_standby.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index cb785971a98..d840940e410 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -94,7 +94,6 @@ int restoreCommandType; #define XLOG_DATA 0 #define XLOG_HISTORY 1 -#define XLOG_BACKUP_LABEL 2 int nextWALFileType; #define SET_RESTORE_COMMAND(cmd, arg1, arg2) \ @@ -211,15 +210,9 @@ CustomizableNextWALFileReady(void) } /* - * If it's a backup file, return immediately. If it's a regular file - * return only if it's the right size already. + * Return only if it's the right size already. */ - if (IsBackupHistoryFileName(nextWALFileName)) - { - nextWALFileType = XLOG_BACKUP_LABEL; - return true; - } - else if (WalSegSz > 0 && stat_buf.st_size == WalSegSz) + if (WalSegSz > 0 && stat_buf.st_size == WalSegSz) { #ifdef WIN32 |