forked from apache/pulsar
-
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.
[cleanup][broker] Remove redundant
messagesForC
check in multi-cons…
…umer dispatcher (apache#15969) ### Motivation In `PersistentDispatcherMultipleConsumers#sendMessagesToConsumers`, it checks `messagesForC > 0` while `messagesForC` is always greater than 0. ### Modifications Remove the `if (messagesForC > 0)` check. In addition, call `entries.subList(start, end)` before handling the replace case to avoid `subList` being called twice.
- Loading branch information
1 parent
3aef61a
commit 298a573
Showing
1 changed file
with
32 additions
and
33 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