2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-25 03:52:36 +00:00
restic/internal/archiver
Alexander Neumann 581c62ee72 archiver: Improve error handling
This commit changes how the worker goroutines for saving e.g. blobs
interact. Before, it was possible to get stuck sending an instruction to
archive a file or dir when no worker goroutines were available any more.
This commit introduces a `done` channel for each of the worker pools,
which is set to the channel returned by `tomb.Dying()`, so it is closed
when the first worker returned an error.
2018-05-12 23:55:54 +02:00
..
archiver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
archiver.go archiver: Improve error handling 2018-05-12 23:55:54 +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
file_saver_test.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
file_saver.go archiver: Improve error handling 2018-05-12 23:55:54 +02:00
index_uploader.go Add new archiver code 2018-04-25 14:42:45 +02:00
scanner_test.go Add new archiver code 2018-04-25 14:42:45 +02:00
scanner.go Add new archiver code 2018-04-25 14:42:45 +02:00
testing_test.go Use new archiver code in tests 2018-04-25 14:42:45 +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 Add new archiver code 2018-04-25 14:42:45 +02:00
tree.go Add new archiver code 2018-04-25 14:42:45 +02:00