aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-08-12 17:36:41 +0200
committerGitHub Enterprise <[email protected]>2025-08-12 17:36:41 +0200
commit39e750f78b0944157f0179266b7593b2e492453f (patch)
tree658fb9723889e857a118e01c5934c85df55aa45e /src/zenserver/config.h
parent5.6.16-pre0 (diff)
downloadzen-39e750f78b0944157f0179266b7593b2e492453f.tar.xz
zen-39e750f78b0944157f0179266b7593b2e492453f.zip
add limitoverwrites option per bucket (#466)
- Feature: Added global zenserver option `--cache-bucket-limit-overwrites` controlling Whether to require policy flag pattern before allowing overwrites or not. Default `false` = overwrites always allowed - Feature: Add per bucket cache configuration option `limitoverwrites` (Lua options file only) cache = { bucket = { -- This is the default for all namespaces limitoverwrites = true }, buckets = { -- Here you can add matching per bucket name (matches accross namespaces) iostorecompression = { limitoverwrites = false }, }, }
Diffstat (limited to 'src/zenserver/config.h')
-rw-r--r--src/zenserver/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/config.h b/src/zenserver/config.h
index 7d90aa4c1..4a022a807 100644
--- a/src/zenserver/config.h
+++ b/src/zenserver/config.h
@@ -125,6 +125,7 @@ struct ZenStructuredCacheBucketConfig
uint32_t PayloadAlignment = 1u << 4;
uint64_t MemCacheSizeThreshold = 1 * 1024;
uint64_t LargeObjectThreshold = 128 * 1024;
+ bool LimitOverwrites = false;
};
struct ZenStructuredCacheConfig
@@ -132,7 +133,6 @@ struct ZenStructuredCacheConfig
bool Enabled = true;
bool WriteLogEnabled = false;
bool AccessLogEnabled = false;
- bool LimitOverwrites = false;
std::vector<std::pair<std::string, ZenStructuredCacheBucketConfig>> PerBucketConfigs;
ZenStructuredCacheBucketConfig BucketConfig;
uint64_t MemTargetFootprintBytes = 512 * 1024 * 1024;