pub struct KeyValueDiskANNMappingMaintenance { /* private fields */ }Expand description
A finite retained discovery pass over index mappings followed by table mappings. Each step considers one mapping and removes at most that record and its preparation guard. Generation payloads and retained history are separate maintenance owners.
Implementations§
Source§impl KeyValueDiskANNMappingMaintenance
impl KeyValueDiskANNMappingMaintenance
pub fn start( store: &Arc<dyn KeyValueStore>, control: &StorageReadControl, ) -> StorageBackendResult<Self>
Sourcepub fn step(&mut self) -> StorageBackendResult<Option<bool>>
pub fn step(&mut self) -> StorageBackendResult<Option<bool>>
Some(true) reclaimed a mapping (or observed a peer’s deletion); Some(false) retained one. None finishes the pass. An uncertain outcome preserves this same key until original completion is resolved.
pub fn commit_pending(&self) -> StorageBackendResult<()>
pub fn rollback_pending(&self) -> StorageBackendResult<()>
pub fn run( store: &Arc<dyn KeyValueStore>, control: &StorageReadControl, ) -> StorageBackendResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for KeyValueDiskANNMappingMaintenance
impl !UnwindSafe for KeyValueDiskANNMappingMaintenance
impl Freeze for KeyValueDiskANNMappingMaintenance
impl Send for KeyValueDiskANNMappingMaintenance
impl Sync for KeyValueDiskANNMappingMaintenance
impl Unpin for KeyValueDiskANNMappingMaintenance
impl UnsafeUnpin for KeyValueDiskANNMappingMaintenance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more