summaryrefslogtreecommitdiffstats
path: root/src/compaction/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-20 06:10:48 +0200
committertv <tv@krebsco.de>2026-10-20 06:10:48 +0200
commit13d3fa4ca2d50b61cab8a9410d097f93797defce (patch)
tree3d7a859d6fe5a5ad6baab62031a0fb258feba892 /src/compaction/mod.rs
parentf1186561af87bde0026a39c50daafa41f46be4b6 (diff)
serve stale reads during rejoin
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 490f7df..e3cdf55 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;