From 14d7568f9c7d970b7bbf7b6463a0a8530f98bb6f Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 20 Sep 2023 15:22:03 +0200 Subject: VFS implementation for local storage service (#396) currently, only Windows (using Projected File System) is supported --- src/zenserver/zenserver.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/zenserver/zenserver.cpp') diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp index 988f72273..1f37e336f 100644 --- a/src/zenserver/zenserver.cpp +++ b/src/zenserver/zenserver.cpp @@ -125,6 +125,7 @@ ZEN_THIRD_PARTY_INCLUDES_END #include "projectstore/httpprojectstore.h" #include "projectstore/projectstore.h" #include "upstream/upstream.h" +#include "vfs/vfsservice.h" #define ZEN_APP_NAME "Zen store" @@ -419,6 +420,11 @@ public: m_Http->RegisterService(*m_ObjStoreService); } + m_VfsService = std::make_unique(); + m_VfsService->AddService(Ref(m_ProjectStore)); + m_VfsService->AddService(Ref(m_CacheStore)); + m_Http->RegisterService(*m_VfsService); + ZEN_INFO("initializing GC, enabled '{}', interval {}s", ServerOptions.GcConfig.Enabled, ServerOptions.GcConfig.IntervalSeconds); zen::GcSchedulerConfig GcConfig{ .RootDirectory = m_DataRoot / "gc", @@ -750,6 +756,7 @@ private: #endif // ZEN_WITH_COMPUTE_SERVICES std::unique_ptr m_FrontendService; std::unique_ptr m_ObjStoreService; + std::unique_ptr m_VfsService; std::unique_ptr m_JobQueue; std::unique_ptr m_AdminService; -- cgit v1.2.3