Skip to content

Commit

Permalink
MINOR: Make forceUnmap method protected (apache#18638)
Browse files Browse the repository at this point in the history
Reviewers: Divij Vaidya <[email protected]>
  • Loading branch information
pramithas authored and pranavt84 committed Jan 27, 2025
1 parent 8ce6030 commit 13a7dc9
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 13a7dc9

Please sign in to comment.