Skip to content

Commit

Permalink
Fixed a bug when flushing a range from the memory buffer (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwilliams89 authored Sep 29, 2021
1 parent 134ff37 commit 3093caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/buffer/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (mc *memoryClearer) MarkRangeAsFlushed(start, end uint) error {
delete(mc.buffer.inFlight, id)
}
mc.buffer.inFlightMux.Unlock()
mc.buffer.sem.Release(int64(end - start - 1))
mc.buffer.sem.Release(int64(end - start))
return nil
}

Expand Down

0 comments on commit 3093caf

Please sign in to comment.