diff options
author | Alex Auvolat <alex@adnab.me> | 2024-03-08 14:11:02 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-03-08 14:11:02 +0100 |
commit | 44454aac012cbef9158110f2352301ffcfaf31c7 (patch) | |
tree | 7e1ff7a536c999811e6c4bf25851434507f4d5f7 /src/util | |
parent | 1ace34adbb05bb10cf7a2c8d0d2b84769ca797df (diff) | |
download | garage-44454aac012cbef9158110f2352301ffcfaf31c7.tar.gz garage-44454aac012cbef9158110f2352301ffcfaf31c7.zip |
[rm-sled] Remove the Sled database engine
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/config.rs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/util/config.rs b/src/util/config.rs index b7f27676..e243c813 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -87,20 +87,10 @@ pub struct Config { pub kubernetes_discovery: Option<KubernetesDiscoveryConfig>, // -- DB - /// Database engine to use for metadata (options: sled, sqlite, lmdb) + /// Database engine to use for metadata (options: sqlite, lmdb) #[serde(default = "default_db_engine")] pub db_engine: String, - /// Sled cache size, in bytes - #[serde( - deserialize_with = "deserialize_capacity", - default = "default_sled_cache_capacity" - )] - pub sled_cache_capacity: usize, - /// Sled flush interval in milliseconds - #[serde(default = "default_sled_flush_every_ms")] - pub sled_flush_every_ms: u64, - /// LMDB map size #[serde(deserialize_with = "deserialize_capacity", default)] pub lmdb_map_size: usize, @@ -246,13 +236,6 @@ fn default_db_engine() -> String { "lmdb".into() } -fn default_sled_cache_capacity() -> usize { - 128 * 1024 * 1024 -} -fn default_sled_flush_every_ms() -> u64 { - 2000 -} - fn default_block_size() -> usize { 1048576 } |