mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
2b0a25a64d
Before this change, the Memory backend had the potential to deadlock under certain conditions, if the ListR callback required locking the b.mu mutex. This was the case with operations.Purge, because Memory has no Purge method, and the fallback option does: err = DeleteFiles(ctx, listToChan(ctx, f, dir)) which potentially starts removing objects before the listing has completed. This change fixes the issue by batching all the entries before calling the callback on them. |
||
---|---|---|
.. | ||
memory_internal_test.go | ||
memory_test.go | ||
memory.go |