diff options
author | Alex Auvolat <alex@adnab.me> | 2021-04-14 23:37:41 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-04-27 16:53:49 +0200 |
commit | 7ba1364c08379ab0fbd465bdc532fff1572a25d4 (patch) | |
tree | 324cd64a0c8c05c41150f84eae857159a2ad07ef /src/util | |
parent | cb02ce3eb210afc379e4fc287375337758689785 (diff) | |
download | garage-7ba1364c08379ab0fbd465bdc532fff1572a25d4.tar.gz garage-7ba1364c08379ab0fbd465bdc532fff1572a25d4.zip |
Small improvements to compression code
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/config.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs index 29901d46..a893cd66 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -45,6 +45,9 @@ pub struct Config { #[serde(default = "default_replication_factor")] pub data_replication_factor: usize, + /// Enable Zstd compression of block data + pub enable_compression: bool, + /// Zstd compression level used on data blocks #[serde(default)] pub compression_level: i32, |