Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita33969e

Browse files
committed
pg_standby: Remove code for .backup files
These files are no longer requested on recovery (since06f82b2), so the code for handling themhere is useless.Author: Yugo Nagata <nagata@sraoss.co.jp>
1 parent7bdea62 commita33969e

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 @@ intrestoreCommandType;
9494

9595
#defineXLOG_DATA 0
9696
#defineXLOG_HISTORY 1
97-
#defineXLOG_BACKUP_LABEL 2
9897
intnextWALFileType;
9998

10099
#defineSET_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-
elseif (WalSegSz>0&&stat_buf.st_size==WalSegSz)
215+
if (WalSegSz>0&&stat_buf.st_size==WalSegSz)
223216
{
224217
#ifdefWIN32
225218

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp