congbobo184 commented on a change in pull request #11135:
URL: https://github.com/apache/pulsar/pull/11135#discussion_r660238529
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java
##########
@@ -276,8 +278,10 @@ public synchronized void readMoreEntries() {
}
}
- protected int calculateNumOfMessageToRead(int
currentTotalAvailablePermits) {
+ // left pair is messagesToRead, right pair is bytesToRead
+ protected MutablePair<Integer, Integer> calculateToRead(int
currentTotalAvailablePermits) {
Review comment:
it only the calculate result, not internal number.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]