From 2b377b2dc45f8f53588eea5f36d04d60bf138c6d Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Mon, 18 Oct 2021 16:00:23 +0300 Subject: [PATCH] new_database: set max size to 4TB --- src/kv/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kv/mod.rs b/src/kv/mod.rs index bb7b678..c9d61f7 100644 --- a/src/kv/mod.rs +++ b/src/kv/mod.rs @@ -78,7 +78,7 @@ pub fn new_mem_database() -> anyhow::Result { pub fn new_database(path: &std::path::Path) -> anyhow::Result { 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, }) }