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§
Sourcefn min_replicated_gsn(&self, shard_id: u8) -> u64
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§
impl CompactionGuard for ReplicationServer
impl CompactionGuard for NoReplicationGuard
Available on crate feature
replication only.