Skip to main content Module context Copy item path Source use std::collections::BTreeMap ; π use std::fs::remove_dir_all ; π use std::path::Path ; π use std::sync::Arc ; π use std::sync::Mutex ; π use rocksdb::Cache; π use rocksdb::LruCacheOptions; π use tuwunel_core::Result ; π use tuwunel_core::Server ; π use tuwunel_core::debug ; π use tuwunel_core::debug ; π use tuwunel_core::utils::math::usize_from_f64 ; π use tuwunel_core::utils::result::LogErr ; π use super::env::Env ; π use crate::pool::Pool ; π ColCache π One block-cache pool, plus the column families participating in it. Context π Holds shared resources that must outlive an opened database. SHARED_POOL π Name under which the shared block cache (every CF with
CacheDisp::Shared) is registered in Context::col_cache . after_close π For unit and integration tests the βcleanupβ directive deletes after close
to cleanup. before_open π For unit and integration tests the βfreshβ directive deletes found db. delete_database_for_testing π For unit and integration tests; removes the database directory when called.
To prevent misuse, cfg!(test) must be true for a unit test or the
integration test server is named localhost. ColCaches π Map of block-cache pools keyed by pool name. The pool name is either
SHARED_POOL or the first-arrival CF that created it.