Skip to content

Commit

Permalink
fixup! use a waitgroup to wait for reserve holders of MFiles before u…
Browse files Browse the repository at this point in the history
…nmapping
  • Loading branch information
carlhoerberg committed Dec 12, 2024
1 parent 4fe2aac commit 17e4d7a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lavinmq/mfile.cr
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ class MFile < IO
raise RuntimeError.from_errno("msync") if code < 0
end

# def finalize
# LibC.close(@fd) if @fd > -1
# LibC.munmap(@buffer, @capacity) unless @buffer.null?
# end

def write(slice : Bytes) : Nil
size = @size
new_size = size + slice.size
Expand Down

0 comments on commit 17e4d7a

Please sign in to comment.