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

Commitf63943a

Browse files
committed
Fix validate command.
1 parentfc3f39a commitf63943a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

‎validate.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,18 @@ do_validate(time_t backup_id)
4949
}
5050

5151
/* Validate completed backups only. */
52-
if (backup->status!=BACKUP_STATUS_DONE)
52+
if (backup_id==0&&backup->status!=BACKUP_STATUS_DONE)
5353
continue;
5454

55-
/* validate with CRC value and update status to OK */
56-
pgBackupValidate(backup, false, false);
55+
if (backup_id!=0&&backup->start_time==backup_id)
56+
{
57+
pgBackupValidate(backup, false, false);
58+
break;
59+
}
60+
else
61+
/* validate with CRC value and update status to OK */
62+
pgBackupValidate(backup, false, false);
63+
5764
}
5865

5966
/* cleanup */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp