From c5740f3db71e11340903fa5c97a81da584265cf0 Mon Sep 17 00:00:00 2001 From: Zach Schoenberger Date: Wed, 18 Oct 2023 19:43:53 -0700 Subject: [PATCH] Change: Refactor Snpashot --- openraft/src/raft_state/membership_state/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/openraft/src/raft_state/membership_state/mod.rs b/openraft/src/raft_state/membership_state/mod.rs index 9bdf74ac2..fdeddd3a1 100644 --- a/openraft/src/raft_state/membership_state/mod.rs +++ b/openraft/src/raft_state/membership_state/mod.rs @@ -15,7 +15,6 @@ mod change_handler; #[cfg(test)] mod membership_state_test; pub(crate) use change_handler::ChangeHandler; -use tracing::info; /// The state of membership configs a raft node needs to know. /// @@ -86,7 +85,6 @@ where pub(crate) fn commit(&mut self, committed_log_id: &Option>) { if committed_log_id >= self.effective().log_id() { debug_assert!(committed_log_id.index() >= self.effective().log_id().index()); - info!("committed: {:?} effective: {:?}", self.committed, self.effective); self.committed = self.effective.clone(); } } @@ -125,7 +123,6 @@ where } if c.log_id() > self.committed.log_id() { - info!("c.log_id: {:?} committed: {:?}", c.log_id(), self.committed.log_id()); self.committed = c } @@ -154,10 +151,6 @@ where // Openraft allows at most only one non-committed membership config. // If there is another new config, self.effective must have been committed. - info!( - "append: committed: {:?} effective: {:?}", - self.committed, self.effective - ); self.committed = self.effective.clone(); self.effective = m; }