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,
|
||||
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…
Reference in New Issue