提交 cf723ad4 编写于 作者: L Li Zhanhui 提交者: dongeforever

Fix issue 165

上级 55b55706
...@@ -462,7 +462,7 @@ public class DefaultMessageStore implements MessageStore { ...@@ -462,7 +462,7 @@ public class DefaultMessageStore implements MessageStore {
long maxPhyOffsetPulling = 0; long maxPhyOffsetPulling = 0;
int i = 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(); final boolean diskFallRecorded = this.messageStoreConfig.isDiskFallRecorded();
for (; i < bufferConsumeQueue.getSize() && i < maxFilterMessageCount; i += ConsumeQueue.CQ_STORE_UNIT_SIZE) { for (; i < bufferConsumeQueue.getSize() && i < maxFilterMessageCount; i += ConsumeQueue.CQ_STORE_UNIT_SIZE) {
long offsetPy = bufferConsumeQueue.getByteBuffer().getLong(); long offsetPy = bufferConsumeQueue.getByteBuffer().getLong();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册