aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-08-12 10:06:36 +0200
committerStefan Boberg <[email protected]>2021-08-12 10:06:36 +0200
commitcfa13ce97d84fab0ce21d8d3f81c20043afd002d (patch)
treebe3e21f2d05fa193da65b5ee03ff2d88b8a0be9d /zenserver/projectstore.h
parentImplemented flush operations for cache services (diff)
downloadzen-cfa13ce97d84fab0ce21d8d3f81c20043afd002d.tar.xz
zen-cfa13ce97d84fab0ce21d8d3f81c20043afd002d.zip
Added {project}/oplog/{log}/{hash} endpoint (implemented by Matt Peters)
Added project store flush implementation
Diffstat (limited to 'zenserver/projectstore.h')
-rw-r--r--zenserver/projectstore.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/zenserver/projectstore.h b/zenserver/projectstore.h
index 621d7be05..33bacfdaa 100644
--- a/zenserver/projectstore.h
+++ b/zenserver/projectstore.h
@@ -100,6 +100,7 @@ public:
const std::filesystem::path& TempPath() const { return m_TempPath; }
spdlog::logger& Log() { return m_OuterProject->Log(); }
+ void Flush();
std::size_t OplogCount() const { return m_LatestOpMap.size(); }
@@ -152,8 +153,8 @@ public:
void Read();
void Write();
[[nodiscard]] static bool Exists(std::filesystem::path BasePath);
-
- spdlog::logger& Log();
+ void Flush();
+ spdlog::logger& Log();
private:
ProjectStore* m_ProjectStore;
@@ -175,6 +176,7 @@ public:
std::string_view ProjectRootDir);
void DeleteProject(std::string_view ProjectId);
bool Exists(std::string_view ProjectId);
+ void Flush();
spdlog::logger& Log() { return m_Log; }
const std::filesystem::path& BasePath() const { return m_ProjectBasePath; }