Skip to content

Commit a33969e

Browse files
committed
pg_standby: Remove code for .backup files
These files are no longer requested on recovery (since 06f82b2), so the code for handling them here is useless. Author: Yugo Nagata <nagata@sraoss.co.jp>
1 parent 7bdea62 commit a33969e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

contrib/pg_standby/pg_standby.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ int restoreCommandType;
9494

9595
#define XLOG_DATA 0
9696
#define XLOG_HISTORY 1
97-
#define XLOG_BACKUP_LABEL 2
9897
int nextWALFileType;
9998

10099
#define SET_RESTORE_COMMAND(cmd, arg1, arg2) \
@@ -211,15 +210,9 @@ CustomizableNextWALFileReady(void)
211210
}
212211

213212
/*
214-
* If it's a backup file, return immediately. If it's a regular file
215-
* return only if it's the right size already.
213+
* Return only if it's the right size already.
216214
*/
217-
if (IsBackupHistoryFileName(nextWALFileName))
218-
{
219-
nextWALFileType = XLOG_BACKUP_LABEL;
220-
return true;
221-
}
222-
else if (WalSegSz > 0 && stat_buf.st_size == WalSegSz)
215+
if (WalSegSz > 0 && stat_buf.st_size == WalSegSz)
223216
{
224217
#ifdef WIN32
225218

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy