diff options
author | Alex Auvolat <alex@adnab.me> | 2024-03-14 18:21:37 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-03-15 13:51:31 +0100 |
commit | 1e42808a59c35aae297d9dfd1c166c09f0b99347 (patch) | |
tree | ddc935f1ef7f99b0ef9634cbdf911ce03323d1ff /src/util/config.rs | |
parent | 8dff278b7227007d8a2c2f6c6d6f76c0c5d7a1ac (diff) | |
download | garage-1e42808a59c35aae297d9dfd1c166c09f0b99347.tar.gz garage-1e42808a59c35aae297d9dfd1c166c09f0b99347.zip |
[db-snapshot] implement meta_auto_snapshot_interval
Diffstat (limited to 'src/util/config.rs')
-rw-r--r-- | src/util/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs index 7338a506..8ecbdfbb 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -27,6 +27,10 @@ pub struct Config { #[serde(default)] pub disable_scrub: bool, + /// Automatic snapshot interval for metadata + #[serde(default)] + pub metadata_auto_snapshot_interval: Option<String>, + /// Size of data blocks to save to disk #[serde( deserialize_with = "deserialize_capacity", |