Skip to content

Commit

Permalink
Decref SharedBytes.IO after read is done not before
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Dec 1, 2023
1 parent 134781f commit 8421f26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ void populateAndRead(
final List<SparseFileTracker.Gap> gaps = tracker.waitForRange(
rangeToWrite,
rangeToRead,
ActionListener.runBefore(listener, resource::close).delegateFailureAndWrap((l, success) -> {
ActionListener.runAfter(listener, resource::close).delegateFailureAndWrap((l, success) -> {
var ioRef = io;
assert regionOwners.get(ioRef) == this;
final int start = Math.toIntExact(rangeToRead.start());
Expand Down

0 comments on commit 8421f26

Please sign in to comment.