aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-20 21:01:01 +0200
committerStefan Boberg <[email protected]>2021-09-20 21:01:01 +0200
commit961173f44df332cd17e1b9875e4ef5eb9cea1d3a (patch)
treea76b3adcdebd479c70c57bf9fb0391a1237dd5f4 /zenserver/projectstore.cpp
parentMade use of mimalloc controlled by define (diff)
downloadzen-961173f44df332cd17e1b9875e4ef5eb9cea1d3a.tar.xz
zen-961173f44df332cd17e1b9875e4ef5eb9cea1d3a.zip
Added more scrub stubs in higher level services
Diffstat (limited to 'zenserver/projectstore.cpp')
-rw-r--r--zenserver/projectstore.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp
index 404484edf..1f4239b23 100644
--- a/zenserver/projectstore.cpp
+++ b/zenserver/projectstore.cpp
@@ -780,6 +780,12 @@ ProjectStore::Project::Flush()
// TODO
}
+void
+ProjectStore::Project::Scrub(ScrubContext& Ctx)
+{
+ ZEN_UNUSED(Ctx);
+}
+
//////////////////////////////////////////////////////////////////////////
ProjectStore::ProjectStore(CasStore& Store, std::filesystem::path BasePath)
@@ -815,6 +821,17 @@ ProjectStore::Flush()
}
}
+void
+ProjectStore::Scrub(ScrubContext& Ctx)
+{
+ RwLock::SharedLockScope _(m_ProjectsLock);
+
+ for (auto& Kv : m_Projects)
+ {
+ Kv.second.Scrub(Ctx);
+ }
+}
+
ProjectStore::Project*
ProjectStore::OpenProject(std::string_view ProjectId)
{