aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2022-11-23 14:09:30 +0100
committerPer Larsson <[email protected]>2022-11-23 14:09:30 +0100
commitef9856d2d9c7ed73fa0440b8267c1767abc5585d (patch)
tree1059a19901c7d8c91f64ee7830c2ae31e27edccc /zenserver/zenserver.cpp
parent0.1.9-pre3 (diff)
downloadzen-ef9856d2d9c7ed73fa0440b8267c1767abc5585d.tar.xz
zen-ef9856d2d9c7ed73fa0440b8267c1767abc5585d.zip
Map DDC cache key to content ID.
Diffstat (limited to 'zenserver/zenserver.cpp')
-rw-r--r--zenserver/zenserver.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp
index cabff7389..5db4caab7 100644
--- a/zenserver/zenserver.cpp
+++ b/zenserver/zenserver.cpp
@@ -261,11 +261,6 @@ public:
m_CidStore->Initialize(Config);
m_CidService.reset(new zen::HttpCidService{*m_CidStore});
- ZEN_INFO("instantiating project service");
-
- m_ProjectStore = new zen::ProjectStore(*m_CidStore, m_DataRoot / "projects", m_GcManager);
- m_HttpProjectService.reset(new zen::HttpProjectService{*m_CidStore, m_ProjectStore});
-
#if ZEN_WITH_EXEC_SERVICES
if (ServerOptions.ExecServiceEnabled)
@@ -294,14 +289,11 @@ public:
}
#endif // ZEN_WITH_COMPUTE_SERVICES
- if (ServerOptions.StructuredCacheEnabled)
- {
- InitializeStructuredCache(ServerOptions);
- }
- else
- {
- ZEN_INFO("NOT instantiating structured cache service");
- }
+ InitializeStructuredCache(ServerOptions);
+
+ ZEN_INFO("instantiating project service");
+ m_ProjectStore = new zen::ProjectStore(*m_CidStore, *m_CacheStore, m_DataRoot / "projects", m_GcManager);
+ m_HttpProjectService.reset(new zen::HttpProjectService{*m_CidStore, m_ProjectStore});
#if ZEN_ENABLE_MESH
if (ServerOptions.MeshEnabled)