diff options
Diffstat (limited to 'zenserver/projectstore.cpp')
| -rw-r--r-- | zenserver/projectstore.cpp | 17 |
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) { |