forked from tikv/tikv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raftstore: fix store_heartbeat incorrectly reporting store.is_busy ==…
… true. (tikv#16494) close tikv#16491 In this pr, `completed_apply_peers_count` is replaced with `Option<u64>` from `u64`. When initializing, `completed_apply_peers_count` will be set with `Some(0)`. If the check finds that the store already finishes its `busy_on_apply` check with `false` or starting from empty regions, this value will be reset with `None` to mark the check is finished and no need to keep the check anymore next time. Signed-off-by: lucasliang <[email protected]>
- Loading branch information
1 parent
04370e9
commit 4a14cec
Showing
3 changed files
with
51 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters