From 55acf6f276efa952da7bb6f8e0377791549f3ea1 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 20 Oct 2026 06:10:48 +0200 Subject: serve stale reads during rejoin --- src/compaction/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compaction/mod.rs') 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 + 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; -- cgit v1.3.1