Skip to main content

CompactionGuard

Trait CompactionGuard 

Source
pub trait CompactionGuard: Send + Sync {
    // Required method
    fn min_replicated_gsn(&self, shard_id: u8) -> u64;
}
Expand description

Guard that prevents compaction from removing files with unreplicated entries.

Required Methods§

Source

fn min_replicated_gsn(&self, shard_id: u8) -> u64

Minimum GSN replicated to all followers for this shard. Files containing entries with GSN above this value must not be compacted.

Implementors§

Source§

impl CompactionGuard for ReplicationServer

Source§

impl CompactionGuard for NoReplicationGuard

Available on crate feature replication only.