Skip to content

Commit

Permalink
fix(s3stream/wal): fix check of scaleOutWindow
Browse files Browse the repository at this point in the history
Signed-off-by: Ning Yu <ningyu@automq.com>
  • Loading branch information
Chillax-0v0 committed Jan 2, 2024
1 parent c5670e2 commit b5fcdef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private void makeWriteOffsetMatchWindow(long newWindowEndOffset) throws IOExcept
long newWindowMaxLength = newWindowEndOffset - windowStartOffset + scaleUnit;
if (newWindowMaxLength > upperLimit) {
// exceed upper limit
if (newWindowEndOffset - windowStartOffset >= upperLimit) {
if (newWindowEndOffset - windowStartOffset <= upperLimit) {
// however, the new window length is still larger than upper limit, so we just set it to upper limit
newWindowMaxLength = upperLimit;
} else {
Expand Down

0 comments on commit b5fcdef

Please sign in to comment.