diff --git a/src/storage/blocksstable/ob_tmp_file.cpp b/src/storage/blocksstable/ob_tmp_file.cpp index 80a2f9841e..868a50a4c8 100644 --- a/src/storage/blocksstable/ob_tmp_file.cpp +++ b/src/storage/blocksstable/ob_tmp_file.cpp @@ -1243,6 +1243,7 @@ int ObTmpFile::sync(const int64_t timeout_ms) // iter all blocks, execute async wash. common::hash::ObHashSet::const_iterator iter; common::ObSEArray handles; + handles.set_attr(ObMemAttr(MTL_ID(), "TMP_SYNC_HDL")); for (iter = blk_id_set.begin(); OB_SUCC(ret) && iter != blk_id_set.end(); ++iter) { const int64_t &blk_id = iter->first; ObTmpTenantMemBlockManager::ObIOWaitInfoHandle handle; @@ -1721,6 +1722,7 @@ int ObTmpFileManager::remove_tenant_file(const uint64_t tenant_id) { int ret = OB_SUCCESS; common::ObSEArray fd_list; + fd_list.set_attr(ObMemAttr(MTL_ID(), "TMP_FD_LIST")); RmTenantTmpFileOp rm_tenant_file_op(tenant_id, &fd_list); if (IS_NOT_INIT) { ret = OB_NOT_INIT; diff --git a/src/storage/blocksstable/ob_tmp_file_store.cpp b/src/storage/blocksstable/ob_tmp_file_store.cpp index 382a0e7d2b..cc5db3bbb7 100644 --- a/src/storage/blocksstable/ob_tmp_file_store.cpp +++ b/src/storage/blocksstable/ob_tmp_file_store.cpp @@ -426,6 +426,7 @@ ObTmpMacroBlock::ObTmpMacroBlock() alloc_time_(0), access_time_(0) { + using_extents_.set_attr(ObMemAttr(MTL_ID(), "TMP_US_META")); } ObTmpMacroBlock::~ObTmpMacroBlock() @@ -1306,7 +1307,9 @@ int ObTmpTenantFileStore::read_page(ObTmpMacroBlock *block, ObTmpBlockIOInfo &io int32_t page_nums = 0; common::ObIArray *page_io_infos = nullptr; - void *buf = ob_malloc(sizeof(common::ObSEArray), "TmpReadPage"); + void *buf = + ob_malloc(sizeof(common::ObSEArray), + ObMemAttr(MTL_ID(), "TmpReadPage")); if (OB_ISNULL(buf)) { ret = OB_ALLOCATE_MEMORY_FAILED; STORAGE_LOG(WARN, "fail to alloc a buf", K(ret)); @@ -1841,6 +1844,7 @@ int ObTmpFileStore::get_macro_block_list(ObIArray &tmp_bl } else { tmp_block_cnt_pairs.reset(); common::ObSEArray macro_id_list; + macro_id_list.set_attr(ObMemAttr(MTL_ID(), "TMP_MB_LIST")); TenantFileStoreMap::iterator iter; ObTmpTenantFileStore *tmp = NULL; for (iter = tenant_file_stores_.begin(); OB_SUCC(ret) && iter != tenant_file_stores_.end();