reuse allocator for rollback

This commit is contained in:
obdev 2024-02-08 04:12:15 +00:00 committed by ob-robot
parent f4cf581517
commit 98ff4df9b3

View File

@ -596,7 +596,7 @@ int ObTenantStorageCheckpointWriter::rollback()
if (!is_inited_ || 0 == tablet_item_addr_info_arr_.count()) {
// there's no new tablet, no need to rollback
} else {
ObArenaAllocator allocator("CkptRollback");
ObArenaAllocator allocator("CkptRollback", OB_MALLOC_NORMAL_BLOCK_SIZE, MTL_ID());
ObTablet tablet;
for (int64_t i = 0; i < tablet_item_addr_info_arr_.count(); i++) {
tablet.reset();
@ -608,6 +608,7 @@ int ObTenantStorageCheckpointWriter::rollback()
if (addr_info.need_rollback_) {
rollback_cnt++;
do {
allocator.reuse();
if (OB_FAIL(MTL(ObTenantCheckpointSlogHandler*)->read_from_disk(
addr_info.new_addr_,
allocator,