提交 7c7374e3 编写于 作者: L Li Zhanhui 提交者: Zhanhui Li

Fix issue 165

上级 40a233aa
......@@ -462,7 +462,7 @@ public class DefaultMessageStore implements MessageStore {
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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册