2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-28 04:56:04 +00:00
restic/internal/archiver
Alexander Neumann 1140950d7b scanner: Use context only for cancellation
When the scanner is slower than the actual backup, the tomb cancels the
context passed to Scan(), which then returns ctx.Err(). In the end, the
main function prints an error message that is not helpful ("Context
cancelled") and exits with an error code although no error occurred.

The code now ignores the error in the context and just uses it for
cancellation. The scanner is not supposed to return an error anyway.

Closes #1978
2018-09-08 18:53:12 +02:00
..
archiver_test.go clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00
archiver.go Reject files excluded by name before calling lstat to improve scan speed 2018-08-12 17:51:12 +02:00
blob_saver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
blob_saver.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
buffer.go archiver: Improve buffer pool 2018-04-30 15:13:28 +02:00
doc.go archiver: Add high-level documentation 2018-05-12 23:55:54 +02:00
file_saver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
file_saver.go archiver: Add test for early abort on unhandled error 2018-05-12 23:55:59 +02:00
index_uploader.go Add new archiver code 2018-04-25 14:42:45 +02:00
scanner_test.go scanner: Use context only for cancellation 2018-09-08 18:53:12 +02:00
scanner.go scanner: Use context only for cancellation 2018-09-08 18:53:12 +02:00
testing_test.go Fix formatting for gofmt with Go 1.11 2018-08-31 21:10:26 +02:00
testing.go Use new archiver code in tests 2018-04-25 14:42:45 +02:00
tree_saver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
tree_saver.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
tree_test.go archiver: Unroll tree 2018-06-20 22:56:41 +02:00
tree.go clean up some errors from 'go vet ./...' 2018-09-05 08:04:55 -04:00