HBASE-23374 ExclusiveMemHFileBlock’s allocator should not be hardcoded as ByteBuffAllocator.HEAP
Signed-off-by: stack <stack@apache.org> Signed-off-by: Jan Hentschel <janh@apache.org>
This commit is contained in:
parent
1b049a2d34
commit
56f9db98d1
|
@ -39,10 +39,9 @@ public class ExclusiveMemHFileBlock extends HFileBlock {
|
||||||
ExclusiveMemHFileBlock(BlockType blockType, int onDiskSizeWithoutHeader,
|
ExclusiveMemHFileBlock(BlockType blockType, int onDiskSizeWithoutHeader,
|
||||||
int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuff buf, boolean fillHeader,
|
int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuff buf, boolean fillHeader,
|
||||||
long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader,
|
long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader,
|
||||||
HFileContext fileContext) {
|
HFileContext fileContext, ByteBuffAllocator alloc) {
|
||||||
super(blockType, onDiskSizeWithoutHeader, uncompressedSizeWithoutHeader, prevBlockOffset, buf,
|
super(blockType, onDiskSizeWithoutHeader, uncompressedSizeWithoutHeader, prevBlockOffset, buf,
|
||||||
fillHeader, offset, nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext,
|
fillHeader, offset, nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext, alloc);
|
||||||
ByteBuffAllocator.HEAP);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class HFileBlockBuilder {
|
||||||
} else {
|
} else {
|
||||||
return new ExclusiveMemHFileBlock(blockType, onDiskSizeWithoutHeader,
|
return new ExclusiveMemHFileBlock(blockType, onDiskSizeWithoutHeader,
|
||||||
uncompressedSizeWithoutHeader, prevBlockOffset, buf, fillHeader, offset,
|
uncompressedSizeWithoutHeader, prevBlockOffset, buf, fillHeader, offset,
|
||||||
nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext);
|
nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext, allocator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue