diff options
| author | Martin Ridgers <[email protected]> | 2021-09-21 11:06:13 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-21 11:06:13 +0200 |
| commit | 68c951e0f440ffd483795dced737e88152c1a581 (patch) | |
| tree | 5c0910ca2a85b45fb05dba3ce457b7d156213894 /zenserver/projectstore.cpp | |
| parent | Merge main into linux-mac (diff) | |
| parent | Trigger storage scrubbing pass at startup (diff) | |
| download | zen-68c951e0f440ffd483795dced737e88152c1a581.tar.xz zen-68c951e0f440ffd483795dced737e88152c1a581.zip | |
Merged main into linux-mac
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) { |