rclone/backend/union
Nick Craig-Wood 5dd51e6149 union: fix deadlock when one part of a multi-upload fails
Before this fix, rclone would deadlock when uploading two files at
once, if one errored. This caused the other file to block in the multi
reader and never complete.

This fix drains the input buffer on error which allows the other
upload to complete.

See: https://forum.rclone.org/t/union-with-create-policy-all-copy-stuck-when-first-union-fails/29601
2022-03-09 11:30:55 +00:00
..
policy backend: Fix union eplus policy returned nil 2021-11-08 11:55:27 +00:00
upstream union: fix treatment of remotes with // in 2021-11-23 17:41:12 +00:00
entry.go union: fix deadlock when one part of a multi-upload fails 2022-03-09 11:30:55 +00:00
errors.go doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
union.go union: fix deadlock when one part of a multi-upload fails 2022-03-09 11:30:55 +00:00
union_internal_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
union_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00