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.
|
||||
*/
|
||||
// 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 {
|
||||
|
|
Loading…
Reference in New Issue