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:12:35 +0200
commit55acf6f276efa952da7bb6f8e0377791549f3ea1 (patch)
tree9541e63791da54f11c621110e2e6060d6a0e0c9b /src/compaction/mod.rs
parent786f172e7fec1d09cc43fff6b96730132fbfd048 (diff)
serve stale reads during rejoinHEADmaster
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;