Skip to content

Commit 820feab

Browse files
raftstore: polish codes when clearing busy_on_apply flag. (tikv#16527)
ref tikv#16491 This pr is used to polish the codes when checking and clearing `busy_on_flag` flag. Signed-off-by: lucasliang <[email protected]>
1 parent 3ca29f8 commit 820feab

File tree

1 file changed

+1
-1
lines changed
  • components/raftstore/src/store/fsm

1 file changed

+1
-1
lines changed

components/raftstore/src/store/fsm/store.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2826,7 +2826,7 @@ impl<'a, EK: KvEngine, ER: RaftEngine, T: Transport> StoreFsmDelegate<'a, EK, ER
28262826
);
28272827
// If the store already pass the check, it should clear the
28282828
// `completed_apply_peers_count` to skip the check next time.
2829-
if !busy_on_apply {
2829+
if !busy_on_apply && completed_apply_peers_count.is_some() {
28302830
let mut meta = self.ctx.store_meta.lock().unwrap();
28312831
meta.completed_apply_peers_count = None;
28322832
}

0 commit comments

Comments
 (0)