Skip to content

Commit

Permalink
Fix issue 165
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhanhui authored and dongeforever committed Jun 6, 2017
1 parent 55b5570 commit cf723ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public GetMessageResult getMessage(final String group, final String topic, final
long maxPhyOffsetPulling = 0;

int i = 0;
final int maxFilterMessageCount = 16000;
final int maxFilterMessageCount = Math.max(16000, maxMsgNums * ConsumeQueue.CQ_STORE_UNIT_SIZE);
final boolean diskFallRecorded = this.messageStoreConfig.isDiskFallRecorded();
for (; i < bufferConsumeQueue.getSize() && i < maxFilterMessageCount; i += ConsumeQueue.CQ_STORE_UNIT_SIZE) {
long offsetPy = bufferConsumeQueue.getByteBuffer().getLong();
Expand Down

0 comments on commit cf723ad

Please sign in to comment.