1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-09 00:45:49 +02:00

Test that shrunk file is backed up correctly.

It's possible, though rare, for a file to shrink during a backup.

There was no issue with the code but having a test is always a good idea.
This commit is contained in:
David Steele
2020-03-17 16:01:17 -04:00
parent 7f1817c8ad
commit 307e741298

View File

@ -470,8 +470,8 @@ testRun(void)
TEST_ASSIGN(
result,
backupFile(pgFile, false, 9, NULL, false, 0, pgFile, false, false, 1, backupLabel, false, cipherTypeNone, NULL),
"pg file exists, no repo file, no ignoreMissing, no pageChecksum, no delta, no hasReference");
backupFile(pgFile, false, 9999999, NULL, false, 0, pgFile, false, false, 1, backupLabel, false, cipherTypeNone, NULL),
"pg file exists and shrunk, no repo file, no ignoreMissing, no pageChecksum, no delta, no hasReference");
((Storage *)storageRepo())->interface.feature = feature;