From eed5fbbf6ae2d144bcc7161243ba0713fd7ce6fd Mon Sep 17 00:00:00 2001 From: Tyshawn Date: Mon, 31 Jan 2022 15:01:10 +0800 Subject: [PATCH] [BUG.FIX] fix no remove tmp file block after 4013. --- src/storage/blocksstable/ob_tmp_file_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/blocksstable/ob_tmp_file_store.cpp b/src/storage/blocksstable/ob_tmp_file_store.cpp index 822acf623..7c4c44d11 100644 --- a/src/storage/blocksstable/ob_tmp_file_store.cpp +++ b/src/storage/blocksstable/ob_tmp_file_store.cpp @@ -980,12 +980,12 @@ int ObTmpTenantFileStore::alloc_macro_block(const int64_t dir_id, const uint64_t STORAGE_LOG(WARN, "fail to put meta into block cache", K(ret), K(t_mblk)); } if (OB_FAIL(ret)) { - tmp_block_manager_.free_macro_block(t_mblk->get_block_id()); tmp_mem_block_manager_.free_macro_block(t_mblk->get_block_id()); t_mblk->give_back_buf_into_cache(); } } if (OB_FAIL(ret) && OB_NOT_NULL(t_mblk)) { + tmp_block_manager_.free_macro_block(t_mblk->get_block_id()); allocator_.free(t_mblk); } }