Skip to content

Commit

Permalink
[ISSUE apache#7836] flush_behind_bytes wrong in transientStorePoolEna…
Browse files Browse the repository at this point in the history
…ble not enable
  • Loading branch information
leizhiyuan authored Mar 24, 2024
1 parent f2dd5b0 commit 27d8375
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,11 @@ public long dispatchBehindBytes() {
}

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
Expand Down

0 comments on commit 27d8375

Please sign in to comment.