Skip to content

Commit

Permalink
Merge pull request #1106 from pzygielo/useless-b
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed Aug 6, 2021
2 parents f07bec7 + f941958 commit e598239
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ public void setParentList(PartitionedStore pstore, SubSet set) {
}

protected void getMoreMessages(int num) {
Map<PartitionedStore, SubSet> ss = new LinkedHashMap<>();
final Map<PartitionedStore, SubSet> ss = new LinkedHashMap<>();
synchronized (parentListMap) {
ss.putAll(parentListMap);
}
Expand All @@ -717,7 +717,8 @@ protected void getMoreMessages(int num) {
return;
}
SubSet pl = null;
while (!isFailover && isActive() && !isPaused() && isValid() && ss != null && (pl = getNonEmptyParentList(ss, pl)) != null && count < num
assert ss != null;
while (!isFailover && isActive() && !isPaused() && isValid() && (pl = getNonEmptyParentList(ss, pl)) != null && count < num
&& (parent == null || !parent.isPaused())) {

PacketReference mm = (PacketReference) pl.removeNext();
Expand Down

0 comments on commit e598239

Please sign in to comment.