rclone/backend/memory
nielash 2b0a25a64d memory: fix deadlock in operations.Purge
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.
2024-03-27 11:42:49 -04:00
..
memory_internal_test.go memory: fix deadlock in operations.Purge 2024-03-27 11:42:49 -04:00
memory_test.go backend: allow wrapping backend tests to run in make quicktest 2022-06-29 17:30:37 +01:00
memory.go memory: fix deadlock in operations.Purge 2024-03-27 11:42:49 -04:00