Skip to content

Commit

Permalink
MINOR: Make forceUnmap method protected (#18638)
Browse files Browse the repository at this point in the history
Reviewers: Divij Vaidya <[email protected]>
  • Loading branch information
pramithas authored Jan 23, 2025
1 parent bc80708 commit 27552e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ protected void safeForceUnmap() {
/**
* Forcefully free the buffer's mmap.
*/
// Visible for testing, we can make this protected once OffsetIndexTest is in the same package as this class
public void forceUnmap() throws IOException {
// Visible for testing
protected void forceUnmap() throws IOException {
try {
ByteBufferUnmapper.unmap(file.getAbsolutePath(), mmap);
} finally {
Expand Down

0 comments on commit 27552e7

Please sign in to comment.