diff options
| author | Dan Engelbrecht <[email protected]> | 2022-03-30 10:49:56 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-03-30 10:49:56 +0200 |
| commit | b79bfa3b727e680eac848c5226a76122e9565827 (patch) | |
| tree | 799a711e73252833e38b27969a467f30464a56bc /zenserver/cache/structuredcachestore.cpp | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-b79bfa3b727e680eac848c5226a76122e9565827.tar.xz zen-b79bfa3b727e680eac848c5226a76122e9565827.zip | |
No need to take exclusive lock while gathering references
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
| -rw-r--r-- | zenserver/cache/structuredcachestore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp index de5bccc3a..d5b892d06 100644 --- a/zenserver/cache/structuredcachestore.cpp +++ b/zenserver/cache/structuredcachestore.cpp @@ -757,7 +757,7 @@ ZenCacheDiskLayer::CacheBucket::GatherReferences(GcContext& GcCtx) const GcClock::Tick ExpireTicks = ExpireTime.time_since_epoch().count(); - RwLock::ExclusiveLockScope _(m_IndexLock); + RwLock::SharedLockScope _(m_IndexLock); std::vector<IoHash> ValidKeys; std::vector<IoHash> ExpiredKeys; |