You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Add test to show behavior of bundled files truncated during backup.
This behavior violates an assertion but is completely possible with the current implementation. This behavior will be fixed in a future commit, but for now at least test how it works correctly and remove the assertion so the test runs without error. Also add a new harness that allows changes during the backup to be scripted.
This commit is contained in:
@@ -3050,7 +3050,6 @@ manifestFileUpdate(Manifest *const this, const ManifestFile *const file)
|
||||
(!file->checksumPage && !file->checksumPageError && file->checksumPageErrorList == NULL) ||
|
||||
(file->checksumPage && !file->checksumPageError && file->checksumPageErrorList == NULL) ||
|
||||
(file->checksumPage && file->checksumPageError));
|
||||
ASSERT(file->size != 0 || (file->bundleId == 0 && file->bundleOffset == 0));
|
||||
|
||||
ManifestFilePack **const filePack = manifestFilePackFindInternal(this, file->name);
|
||||
manifestFilePackUpdate(this, filePack, file);
|
||||
|
||||
Reference in New Issue
Block a user