new_database: set max size to 4TB

This commit is contained in:
Artem Vorotnikov
2021-10-18 16:00:23 +03:00
parent 86bf61fb16
commit 2b377b2dc4

View File

@@ -78,7 +78,7 @@ pub fn new_mem_database() -> anyhow::Result<impl traits::MutableKV> {
pub fn new_database(path: &std::path::Path) -> anyhow::Result<impl traits::MutableKV> {
Ok(MemoryKv {
inner: new_environment(path, n_tib_bytes!(64), Some(n_mib_bytes!(8) as usize))?,
inner: new_environment(path, n_tib_bytes!(4), Some(n_mib_bytes!(8) as usize))?,
_tmpdir: None,
})
}