aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/cache
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-09-03 19:40:54 +0200
committerGitHub Enterprise <[email protected]>2024-09-03 19:40:54 +0200
commit3dfd38c8837c513cb3a5eff576cf3590046bd31e (patch)
treea3ab8d88738dcbeae5d709ccacfe15e1ed58b9ee /src/zenstore/cache
parentmeta info store (#75) (diff)
downloadzen-3dfd38c8837c513cb3a5eff576cf3590046bd31e.tar.xz
zen-3dfd38c8837c513cb3a5eff576cf3590046bd31e.zip
oplog index snapshots (#140)
- Feature: Added project store oplog index snapshots for faster opening of oplog - opening oplogs are roughly 10x faster
Diffstat (limited to 'src/zenstore/cache')
-rw-r--r--src/zenstore/cache/structuredcachestore.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zenstore/cache/structuredcachestore.cpp b/src/zenstore/cache/structuredcachestore.cpp
index 9981aa1eb..ac1db2a4e 100644
--- a/src/zenstore/cache/structuredcachestore.cpp
+++ b/src/zenstore/cache/structuredcachestore.cpp
@@ -1035,6 +1035,8 @@ ZenCacheStore::GetBucketInfo(std::string_view NamespaceName, std::string_view Bu
std::vector<RwLock::SharedLockScope>
ZenCacheStore::LockState(GcCtx&)
{
+ ZEN_TRACE_CPU("CacheStore::LockState");
+
std::vector<RwLock::SharedLockScope> Locks;
Locks.emplace_back(RwLock::SharedLockScope(m_NamespacesLock));
for (auto& NamespaceIt : m_Namespaces)