Turn dirty fix into beautiful fix

This commit is contained in:
Mubelotix
2025-07-22 15:17:26 +02:00
parent 9716834380
commit 6394efc4c2
2 changed files with 45 additions and 22 deletions

View File

@ -71,7 +71,7 @@ pub struct IndexMapper {
/// Path to the folder where the LMDB environments of each index are.
base_path: PathBuf,
/// The map size an index is opened with on the first time.
index_base_map_size: usize,
pub(crate) index_base_map_size: usize,
/// The quantity by which the map size of an index is incremented upon reopening, in bytes.
index_growth_amount: usize,
/// Whether we open a meilisearch index with the MDB_WRITEMAP option or not.