rclone/backend/drive
Nick Craig-Wood 068cfdaa00 drive: fix "panic: send on closed channel" when recycling dir entries
In this commit:

cbf3d43561 drive: fix missing items when listing using --fast-list / ListR

We introduced a bug where under specific circumstances it could cause
a "panic: send on closed channel".

This was caused by:

- rclone engaging the workaround from the commit above
- one of the listing routines returning an error
- this caused the `in` channel to be closed to stop the readers
- however the workaround was recycling stuff into the `in` channel at the time
- hence the panic on closed channel

This fix factors out the sending to the `in` channel into `sendJob`
and calls this both from the master go routine and the list
runners. `sendJob` detects the `in` channel being closed properly and
also deals correctly with contention on the `in` channel.

Fixes #4511
2020-08-31 11:41:15 +01:00
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive.go drive: fix "panic: send on closed channel" when recycling dir entries 2020-08-31 11:41:15 +01:00
drive_internal_test.go drive: implement backend command untrash 2020-08-07 11:10:37 +01:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
upload.go drive: use multipart resumable uploads for streaming and uploads in mount 2020-01-17 22:03:10 +00:00