[ISSUE #7836] flush_behind_bytes wrong in transientStorePoolEnable not enable

This commit is contained in:
Lei Zhiyuan
2024-03-24 18:58:19 +08:00
committed by GitHub
parent f2dd5b06fe
commit 27d8375940
@@ -1543,7 +1543,11 @@ public class DefaultMessageStore implements MessageStore {
}
public long flushBehindBytes() {
return this.commitLog.remainHowManyDataToCommit() + this.commitLog.remainHowManyDataToFlush();
if (this.messageStoreConfig.isTransientStorePoolEnable()) {
return this.commitLog.remainHowManyDataToCommit() + this.commitLog.remainHowManyDataToFlush();
} else {
return this.commitLog.remainHowManyDataToFlush();
}
}
@Override