diff options
Diffstat (limited to 'zenserver')
| -rw-r--r-- | zenserver/cache/structuredcachestore.cpp | 2 | ||||
| -rw-r--r-- | zenserver/cache/structuredcachestore.h | 2 | ||||
| -rw-r--r-- | zenserver/zenserver.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp index 23ad550c9..a734e9eb1 100644 --- a/zenserver/cache/structuredcachestore.cpp +++ b/zenserver/cache/structuredcachestore.cpp @@ -2131,7 +2131,7 @@ namespace { } // namespace -ZenCacheStore::ZenCacheStore(std::filesystem::path BasePath, CasGc& Gc) : GcStorage(Gc), GcContributor(Gc) +ZenCacheStore::ZenCacheStore(CasGc& Gc, std::filesystem::path BasePath) : GcStorage(Gc), GcContributor(Gc) { CreateDirectories(BasePath); std::vector<std::string> ExistingFolders = FindExistingFolders(BasePath); diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h index 910c56745..67bb9c7bf 100644 --- a/zenserver/cache/structuredcachestore.h +++ b/zenserver/cache/structuredcachestore.h @@ -358,7 +358,7 @@ class ZenCacheStore final : public GcStorage, public GcContributor public: static constexpr std::string_view DefaultNamespace = ""; - ZenCacheStore(std::filesystem::path BasePath, CasGc& Gc); + ZenCacheStore(CasGc& Gc, std::filesystem::path BasePath); ~ZenCacheStore(); bool Get(std::string_view Namespace, std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue); diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index e572e6a49..abaec888a 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -755,7 +755,7 @@ ZenServer::InitializeStructuredCache(const ZenServerOptions& ServerOptions) using namespace std::literals; ZEN_INFO("instantiating structured cache service"); - m_CacheStore = std::make_unique<ZenCacheStore>(m_DataRoot / "cache", m_CasGc); + m_CacheStore = std::make_unique<ZenCacheStore>(m_CasGc, m_DataRoot / "cache"); const ZenUpstreamCacheConfig& UpstreamConfig = ServerOptions.UpstreamCacheConfig; |