diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-19 15:11:35 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-05-19 15:11:35 +0200 |
| commit | b373a645f787f28a4f7a831c161553df6fd4d72c (patch) | |
| tree | 014dd6efe3f4a55c443fd05e9c867dcc951e5ac7 /zenserver/cache/structuredcachestore.h | |
| parent | Keep Namespace out of CacheKey and store it on request level (diff) | |
| download | zen-b373a645f787f28a4f7a831c161553df6fd4d72c.tar.xz zen-b373a645f787f28a4f7a831c161553df6fd4d72c.zip | |
migrate legacy cache folders to ue4.ddc namespace
map default namespace to at runtime ue4.ddc
use a non-valid name for the default namespace so we avoid any collision or accidental creation of folder for that
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
| -rw-r--r-- | zenserver/cache/structuredcachestore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h index 232e8b9a8..34b8d18f4 100644 --- a/zenserver/cache/structuredcachestore.h +++ b/zenserver/cache/structuredcachestore.h @@ -356,7 +356,8 @@ private: class ZenCacheStore final : public GcStorage, public GcContributor { public: - static constexpr std::string_view DefaultNamespace = "default"; + static constexpr std::string_view DefaultNamespace = + "!default!"; // This is intentionally not a valid namespace name and will only be used for mapping when no namespace is given static constexpr std::string_view NamespaceDiskPrefix = "ns_"; ZenCacheStore(CasGc& Gc, std::filesystem::path BasePath); |