aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/projectstore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/projectstore.cpp')
-rw-r--r--src/zenstore/projectstore.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zenstore/projectstore.cpp b/src/zenstore/projectstore.cpp
index 56d0f7d2b..0c4abeb1e 100644
--- a/src/zenstore/projectstore.cpp
+++ b/src/zenstore/projectstore.cpp
@@ -3180,6 +3180,7 @@ ProjectStore::Oplog::AddFileMapping(const RwLock::ExclusiveLockScope&,
}
else
{
+ m_ChunkMap.erase(FileId);
Entry.ServerPath = ServerPath;
}
@@ -4406,6 +4407,13 @@ ProjectStore::DiscoverProjects()
}
}
+size_t
+ProjectStore::ProjectCount() const
+{
+ RwLock::SharedLockScope _(m_ProjectsLock);
+ return m_Projects.size();
+}
+
void
ProjectStore::IterateProjects(std::function<void(Project& Prj)>&& Fn)
{