mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
s3: fix pathCache race condition
Make sure pathCache is properly locked for concurrent access. Add RWMutex to the PublishedStorage struct: - Cache initialization Read-lock to test for nil, then write-lock with a second nil check before populating - Cache reads RLock/RUnlock, allowing concurrent readers - Cache writes / deletes Lock/Unlock
This commit is contained in:
1 parent
c0c4bc3e35
commit
c63324756b
2 files changed
+33
-9
No files matched your search
Reference in new issue
Block a user