diff options
| author | Stefan Boberg <[email protected]> | 2021-11-01 19:59:31 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-11-01 19:59:31 +0100 |
| commit | 2017dc2338e93af35f942953458466d7058fc80c (patch) | |
| tree | a43aaa7f9cc4f7cf68d5fde49f7d71a236bc356e /zenserver/projectstore.h | |
| parent | gc: added DeletionMode flag to allow gc dry runs (diff) | |
| download | zen-2017dc2338e93af35f942953458466d7058fc80c.tar.xz zen-2017dc2338e93af35f942953458466d7058fc80c.zip | |
projectstore: Implemented project/oplog discovery so we can take any persistent oplog into account even if it has not been opened in the current session
Diffstat (limited to 'zenserver/projectstore.h')
| -rw-r--r-- | zenserver/projectstore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zenserver/projectstore.h b/zenserver/projectstore.h index 6bd210573..43acdf05f 100644 --- a/zenserver/projectstore.h +++ b/zenserver/projectstore.h @@ -154,6 +154,7 @@ public: void DeleteOplog(std::string_view OplogId); void IterateOplogs(std::function<void(const Oplog&)>&& Fn) const; void IterateOplogs(std::function<void(Oplog&)>&& Fn); + void DiscoverOplogs(); Project(ProjectStore* PrjStore, CidStore& Store, std::filesystem::path BasePath); ~Project(); @@ -188,6 +189,7 @@ public: bool Exists(std::string_view ProjectId); void Flush(); void Scrub(ScrubContext& Ctx); + void DiscoverProjects(); spdlog::logger& Log() { return m_Log; } const std::filesystem::path& BasePath() const { return m_ProjectBasePath; } |