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
5cae75e124
commit
da4f756e6a
@ -39,10 +39,9 @@ public class ExclusiveMemHFileBlock extends HFileBlock {
|
||||
ExclusiveMemHFileBlock(BlockType blockType, int onDiskSizeWithoutHeader,
|
||||
int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuff buf, boolean fillHeader,
|
||||
long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader,
|
||||
HFileContext fileContext) {
|
||||
HFileContext fileContext, ByteBuffAllocator alloc) {
|
||||
super(blockType, onDiskSizeWithoutHeader, uncompressedSizeWithoutHeader, prevBlockOffset, buf,
|
||||
fillHeader, offset, nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext,
|
||||
ByteBuffAllocator.HEAP);
|
||||
fillHeader, offset, nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext, alloc);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -108,7 +108,7 @@ public class HFileBlockBuilder {
|
||||
} else {
|
||||
return new ExclusiveMemHFileBlock(blockType, onDiskSizeWithoutHeader,
|
||||
uncompressedSizeWithoutHeader, prevBlockOffset, buf, fillHeader, offset,
|
||||
nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext);
|
||||
nextBlockOnDiskSize, onDiskDataSizeWithHeader, fileContext, allocator);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user