rclone/lib/cache
Nick Craig-Wood bfcf6baf93 lib/cache: fix locking so we don't try to create the item many times
Before this fix, if several Get requests were submitted very quickly,
this could run the item create function multiple times due to the
unlock of the mutex in the creation code.

This fixes the problem by having a mutex in each cache entry which is
held when the item is being created.
2021-02-05 19:08:00 +00:00
..
cache.go lib/cache: fix locking so we don't try to create the item many times 2021-02-05 19:08:00 +00:00
cache_test.go lib/cache: fix locking so we don't try to create the item many times 2021-02-05 19:08:00 +00:00