aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-30 10:49:56 +0200
committerDan Engelbrecht <[email protected]>2022-03-30 10:49:56 +0200
commitb79bfa3b727e680eac848c5226a76122e9565827 (patch)
tree799a711e73252833e38b27969a467f30464a56bc /zenserver/cache/structuredcachestore.cpp
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-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.cpp2
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;