summaryrefslogtreecommitdiffstats
path: root/src/compaction/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compaction/mod.rs')
-rw-r--r--src/compaction/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compaction/mod.rs b/src/compaction/mod.rs
index 4685b86..6de22c5 100644
--- a/src/compaction/mod.rs
+++ b/src/compaction/mod.rs
@@ -69,6 +69,10 @@ pub(crate) trait Host: Clone + Send + Sync + 'static {
/// Serves requests again after [`Host::suspend`].
fn resume(&self) -> impl Future<Output = ()> + Send;
+ /// Serves reads from this document (read-only, marked stale) while the node is not
+ /// ready; `None` ends it.
+ fn set_stale_view(&self, view: Option<(Epoch, AutoCommit)>);
+
/// Whether the document caught up with a peer since the last reset.
fn initial_sync_done(&self) -> bool;