1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Refactor skip files truncated during backup when bundling.

Refactor 02eea555 to always close the file immediately on EOF and use backupCopyResultCopy to continue processing. Closing the file immediately saves a later EOF check and is friendlier to added logic in this area. Using backupCopyResultCopy to continue is clearer also makes it easier to add new logic.

Also store zero checksum so the bulk of results collection can be moved within the copy block.
This commit is contained in:
David Steele
2023-12-22 13:16:45 -03:00
parent c8795094d4
commit 9049fec2c0
2 changed files with 31 additions and 19 deletions

View File

@@ -42,6 +42,7 @@
<github-pull-request id="2227"/>
</commit>
<commit subject="Allow const checksum buffers to be returned from backupFile()."/>
<commit subject="Refactor skip files truncated during backup when bundling."/>
<release-item-contributor-list>
<release-item-contributor id="georgy.shelkovy"/>