aboutsummaryrefslogtreecommitdiff
path: root/src/util/config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-09-11 18:03:20 +0200
committerAlex Auvolat <alex@adnab.me>2023-09-11 18:03:44 +0200
commit51b9731a086b4e158cbfa2127bcbfd6cb6274578 (patch)
treece5bac4a3fa0ef4a7546c91ad87a5161c3367a35 /src/util/config.rs
parent5f86b48f9766019c6c74d14c2fba8c1176423cfb (diff)
downloadgarage-51b9731a086b4e158cbfa2127bcbfd6cb6274578.tar.gz
garage-51b9731a086b4e158cbfa2127bcbfd6cb6274578.zip
make lmdb's map_size configurable (fix #628)
Diffstat (limited to 'src/util/config.rs')
-rw-r--r--src/util/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index 1da95b2f..070bd83e 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -72,6 +72,10 @@ pub struct Config {
#[serde(default = "default_sled_flush_every_ms")]
pub sled_flush_every_ms: u64,
+ /// LMDB map size
+ #[serde(default)]
+ pub lmdb_map_size: Option<String>,
+
// -- APIs
/// Configuration for S3 api
pub s3_api: S3ApiConfig,