aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-27 10:12:42 +0200
committerDan Engelbrecht <[email protected]>2022-04-27 10:12:42 +0200
commit922fbddc312a03628b19dd1780a501e9f394a71b (patch)
tree085b1807d35e3c51687d1471cd43fce488f20554
parentMerge remote-tracking branch 'origin/main' into de/cache-with-block-store (diff)
parentBatch log removal of Cid and take proper lock when modifying m_CidMap (#80) (diff)
downloadzen-922fbddc312a03628b19dd1780a501e9f394a71b.tar.xz
zen-922fbddc312a03628b19dd1780a501e9f394a71b.zip
Merge remote-tracking branch 'origin/main' into de/cache-with-block-store
-rw-r--r--zenstore/cidstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/cidstore.cpp b/zenstore/cidstore.cpp
index 6cf9ee734..55bec817f 100644
--- a/zenstore/cidstore.cpp
+++ b/zenstore/cidstore.cpp
@@ -237,7 +237,7 @@ struct CidStore::Impl
std::vector<IndexEntry> RemovedEntries;
RemovedEntries.reserve(CasChunks.GetSize());
{
- RwLock::SharedLockScope _(m_Lock);
+ RwLock::ExclusiveLockScope _(m_Lock);
for (auto It = m_CidMap.begin(), End = m_CidMap.end(); It != End;)
{
if (CasChunks.ContainsChunk(It->second))