aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-05 10:49:35 +0200
committerDan Engelbrecht <[email protected]>2022-05-05 10:49:35 +0200
commitd484acb3d32662c9e1faf9a99efad543f607732a (patch)
treee179d7ff6176b5aa6536402d0dd0302015e5889f /zenserver/cache
parentmac/linux build fix (diff)
downloadzen-d484acb3d32662c9e1faf9a99efad543f607732a.tar.xz
zen-d484acb3d32662c9e1faf9a99efad543f607732a.zip
revert back constructor order for ZenCacheStore
Diffstat (limited to 'zenserver/cache')
-rw-r--r--zenserver/cache/structuredcachestore.cpp2
-rw-r--r--zenserver/cache/structuredcachestore.h2
2 files changed, 2 insertions, 2 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);