In Gridstore, also populate the tracker file (#7385)

This commit is contained in:
Tim Visée
2025-11-14 12:28:14 +01:00
committed by timvisee
parent 494880b090
commit 726199e4ad
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -590,6 +590,7 @@ impl<V> Gridstore<V> {
for page in &self.pages {
page.populate();
}
self.tracker.read().populate();
self.bitmask.read().populate()?;
Ok(())
}
+5 -1
View File
@@ -2,7 +2,7 @@ use std::path::{Path, PathBuf};
use ahash::AHashMap;
use memmap2::MmapMut;
use memory::madvise::{Advice, AdviceSetting};
use memory::madvise::{Advice, AdviceSetting, Madviseable};
use memory::mmap_ops::{
create_and_ensure_length, open_write_mmap, transmute_from_u8, transmute_to_u8,
};
@@ -309,6 +309,10 @@ impl Tracker {
pointer_opt
}
pub fn populate(&self) {
self.mmap.populate();
}
}
#[cfg(test)]