Open Env without TLS

This commit is contained in:
Kerollmops 2025-03-10 15:41:11 +01:00
parent 48a27f669e
commit 34df44a002
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
9 changed files with 18 additions and 9 deletions

View file

@ -412,7 +412,8 @@ pub(crate) mod test_helpers {
let group_size = group_size.clamp(2, 127);
let max_group_size = std::cmp::min(127, std::cmp::max(group_size * 2, max_group_size)); // 2*group_size <= x <= 127
let min_level_size = std::cmp::max(1, min_level_size); // 1 <= x <= inf
let mut options = heed::EnvOpenOptions::new();
let options = heed::EnvOpenOptions::new();
let mut options = options.read_txn_without_tls();
let options = options.map_size(4096 * 4 * 1000 * 100);
let tempdir = tempfile::TempDir::new().unwrap();
let env = unsafe { options.open(tempdir.path()) }.unwrap();