mirror of
https://github.com/restic/restic.git
synced 2024-12-25 17:27:25 +00:00
f99c95c766
A user discovered[1] that when the backup finishes during the upload of an intermediate index, the upload is cancelled and the index never fully saved, but the snapshot is saved and the backup finalizes without an error. This lead to a situation where a snapshot references data that is contained in the repo, but not referenced in any index, leading to strange error messages. This commit uses a dedicated context to signal the intermediate index uploading routine to terminate after the last index has been uploaded. This way, an upload running when the backup finishes is completed before the routine terminates and the snapshot is saved. [1] https://forum.restic.net/t/error-loading-tree-check-prune-and-forget-gives-error-b2-backend/406 |
||
---|---|---|
.. | ||
archive_reader.go | ||
archive_reader_test.go | ||
archiver.go | ||
archiver_duplication_test.go | ||
archiver_int_test.go | ||
archiver_test.go | ||
buffer_pool.go | ||
testing.go |