Skip to content

Commit f63943a

Browse files
committed
Fix validate command.
1 parent fc3f39a commit f63943a

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)
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