forked from redpanda-data/redpanda
-
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.
r/stm_manager: do not read batches if no stm accepts foreground apply
If neither of state machines managed by the state machine manager can accept the foreground apply there is no need to read the range of batches from the log. In this case we can skip the foreground apply read and move on directly to background apply dispatch. Signed-off-by: Michał Maślanka <michal@redpanda.com>
- Loading branch information
1 parent
5ef2018
commit 08af2b2
Showing
2 changed files
with
33 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