1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-16 23:47:38 +02:00

Allow zero-size files in backup manifest to reference a prior manifest regardless of timestamp delta.

Contributed by Cynthia Shang.
This commit is contained in:
Cynthia Shang
2018-08-24 16:50:33 -04:00
committed by David Steele
parent 0ed37ab9e7
commit eb30d88b6a
7 changed files with 118 additions and 14 deletions

View File

@ -504,6 +504,10 @@ sub run
executeTest("sudo chown " . BACKREST_USER . " ${strResumePath}/file.tmp");
}
# Add zero-sized file
$oHostDbMaster->manifestFileCreate(\%oManifest, MANIFEST_TARGET_PGDATA, 'zero_from_start', undef,
undef, $lTime, undef, true);
$strFullBackup = $oHostBackup->backup(
$strType, 'resume',
{oExpectedManifest => \%oManifest, strTest => TEST_BACKUP_RESUME,