debian-forge-composer/internal/dnfjson
Achilleas Koutsou fb34c69e91 dnfjson: lock cache directory when cleaning
Apply a RWMutex lock to a cache directory.
A global map of cache locks is maintained, keyed by the absolute path to
the cache directory, so multiple cache instances can coexist and share
locks if they use the same cache root.

Currently, the lock only prevents multiple concurrent `shrink()`
operations when multiple cache instances share the same root.
2022-06-10 12:45:41 +01:00
..
cache.go dnfjson: lock cache directory when cleaning 2022-06-10 12:45:41 +01:00
cache_test.go dnfjson: add cache unit tests 2022-06-10 12:45:41 +01:00
dnfjson.go dnfjson: use new size-based cache management 2022-06-10 12:45:41 +01:00
dnfjson_test.go dnfjson: drop repo checksums 2022-06-01 11:36:52 +01:00