fix: disable db shrinking (#8324)

This commit is contained in:
Federico Gimenez
2024-05-21 23:11:22 +02:00
committed by GitHub
parent 50f1f1c033
commit 5eb41d4088

View File

@ -272,7 +272,7 @@ impl DatabaseEnv {
// We grow the database in increments of 4 gigabytes
growth_step: Some(4 * GIGABYTE as isize),
// The database never shrinks
shrink_threshold: None,
shrink_threshold: Some(0),
page_size: Some(PageSize::Set(default_page_size())),
});
#[cfg(not(windows))]