mirror of https://github.com/apache/kafka.git
MINOR: Make `forceUnmap` method protected (#18638)
Reviewers: Divij Vaidya <diviv@amazon.com>
This commit is contained in:
parent
bc807083fb
commit
27552e7b11
|
@ -399,8 +399,8 @@ public abstract class AbstractIndex implements Closeable {
|
||||||
/**
|
/**
|
||||||
* Forcefully free the buffer's mmap.
|
* Forcefully free the buffer's mmap.
|
||||||
*/
|
*/
|
||||||
// Visible for testing, we can make this protected once OffsetIndexTest is in the same package as this class
|
// Visible for testing
|
||||||
public void forceUnmap() throws IOException {
|
protected void forceUnmap() throws IOException {
|
||||||
try {
|
try {
|
||||||
ByteBufferUnmapper.unmap(file.getAbsolutePath(), mmap);
|
ByteBufferUnmapper.unmap(file.getAbsolutePath(), mmap);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue