mirror of
https://github.com/restic/restic.git
synced 2024-08-20 19:33:23 +02:00
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_test.go | ||
archive_reader.go | ||
archiver_duplication_test.go | ||
archiver_int_test.go | ||
archiver_test.go | ||
archiver.go | ||
buffer_pool.go | ||
testing.go |