[ISSUE #9811] Fixed the issue of excessive loop iterations in reput service (#9812)

This commit is contained in:
lizhimins
2025-11-06 11:37:39 +08:00
committed by GitHub
parent 6b91c7d4a2
commit 440341b604
@@ -2536,7 +2536,7 @@ public class DefaultMessageStore implements MessageStore {
if (!isCommitLogAvailable) {
currentReputTimestamp = System.currentTimeMillis();
}
for (boolean doNext = true; isCommitLogAvailable && doNext; ) {
for (boolean doNext = true; isCommitLogAvailable() && doNext; ) {
SelectMappedBufferResult result = DefaultMessageStore.this.commitLog.getData(reputFromOffset);