mirror of https://github.com/restic/restic.git
120ccc8754
Previously, SaveAndEncrypt would assemble blobs into packs and either return immediately if the pack is not yet full or upload the pack file otherwise. The upload will block the current goroutine until it finishes. Now, the upload is done using separate goroutines. This requires changes to the error handling. As uploads are no longer tied to a SaveAndEncrypt call, failed uploads are signaled using an errgroup. To count the uploaded amount of data, the pack header overhead is no longer returned by `packer.Finalize` but rather by `packer.HeaderOverhead`. This helper method is necessary to continue returning the pack header overhead directly to the responsible call to `repository.SaveBlob`. Without the method this would not be possible, as packs are finalized asynchronously. |
||
---|---|---|
.. | ||
doc.go | ||
filerestorer.go | ||
filerestorer_test.go | ||
fileswriter.go | ||
fileswriter_test.go | ||
preallocate_darwin.go | ||
preallocate_linux.go | ||
preallocate_other.go | ||
preallocate_test.go | ||
restorer.go | ||
restorer_test.go | ||
restorer_unix_test.go |