aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/local.rs')
-rw-r--r--src/remake/local.rs25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/remake/local.rs b/src/remake/local.rs
index cdf2d6f..cf6f566 100644
--- a/src/remake/local.rs
+++ b/src/remake/local.rs
@@ -16,7 +16,7 @@ use super::records::Retention;
use super::snapshot::Snapshot;
use crate::clock::UnixMillis;
use crate::document::replica::Epoch;
-use crate::document::{ActorId, ChangeHash, Document};
+use crate::document::{ChangeHash, Document};
use crate::locks::MutexExt;
pub(crate) struct RemakeState {
@@ -68,11 +68,6 @@ struct Inner {
missed: HashSet<String>,
/// Strict remakes this node won't vote for (`vote::cast`), each logged once.
refused_strict: HashSet<String>,
- /// The actors this node writes or wrote with in the current document: this run's,
- /// and those of earlier runs it knows of (`--document-file`). Its own writes, for a
- /// rejoin. A switch or rejoin starts the list over with the new document's actor, so
- /// it only grows with restarts within one epoch.
- own_actors: Vec<ActorId>,
}
/// Content no remake refers to any more is kept this long after it was stored, for
@@ -170,24 +165,6 @@ impl RemakeState {
self.started_at
}
- /// This node writes with `actor` from now on (or did, in an earlier run).
- pub(crate) fn add_own_actor(&self, actor: ActorId) {
- let mut inner = self.lock();
- if !inner.own_actors.contains(&actor) {
- inner.own_actors.push(actor);
- }
- }
-
- /// The current document is a new one, written with `actor` only (a switch or rejoin
- /// is done).
- pub(crate) fn reset_own_actors(&self, actor: ActorId) {
- self.lock().own_actors = vec![actor];
- }
-
- pub(crate) fn own_actors(&self) -> Vec<ActorId> {
- self.lock().own_actors.clone()
- }
-
/// Whether this node starts coordinating `id` now (false if it already does).
pub(crate) fn start_coordinating(&self, id: &str) -> bool {
self.lock().coordinating.insert(id.to_owned())