[CP] [BUG.FIX] fix asan heap-use-after-free in tmp file

This commit is contained in:
Tyshawn 2023-10-13 03:39:48 +00:00 committed by ob-robot
parent 79253707a7
commit b660977d13

View File

@ -1463,7 +1463,7 @@ int ObTmpTenantMemBlockManager::exec_wait()
STORAGE_LOG(ERROR, "unexpected error, macro handle in wait info is nullptr", K(ret), KPC(wait_info));
} else {
ObTmpMacroBlock &blk = wait_info->get_block();
const MacroBlockId &macro_id = wait_info->block_handle_->get_macro_id();
const MacroBlockId macro_id = wait_info->block_handle_->get_macro_id();
const int64_t block_id = blk.get_block_id();
const int64_t free_page_nums = blk.get_free_page_nums();
if (OB_FAIL(wait_info->exec_wait(io_timeout_ms))) {