mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-21 13:37:46 -05:00
In Gridstore, also populate the tracker file (#7385)
This commit is contained in:
@@ -590,6 +590,7 @@ impl<V> Gridstore<V> {
|
||||
for page in &self.pages {
|
||||
page.populate();
|
||||
}
|
||||
self.tracker.read().populate();
|
||||
self.bitmask.read().populate()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user