[BUG.FIX] split block id set memory into tenant

This commit is contained in:
Tyshawn
2023-10-18 13:09:21 +00:00
committed by ob-robot
parent bcd29d1bc9
commit 75be85e3a1
2 changed files with 3 additions and 2 deletions

View File

@ -1171,7 +1171,8 @@ int ObTmpFile::sync(const int64_t timeout_ms)
// all extents has been closed. // all extents has been closed.
const ObIArray<ObTmpFileExtent *> &extents = file_meta_.get_extents(); const ObIArray<ObTmpFileExtent *> &extents = file_meta_.get_extents();
common::hash::ObHashSet<int64_t> blk_id_set; common::hash::ObHashSet<int64_t> blk_id_set;
if (OB_FAIL(blk_id_set.create(extents.count()))){ lib::ObMemAttr attr(tenant_id_, "TmpBlkIDSet");
if (OB_FAIL(blk_id_set.create(extents.count(), attr))){
STORAGE_LOG(WARN, "create block id set failed", K(ret), K(timeout_ms)); STORAGE_LOG(WARN, "create block id set failed", K(ret), K(timeout_ms));
} else { } else {
// get extents block id set. // get extents block id set.

View File

@ -1766,7 +1766,7 @@ int ObTablet::inner_inc_macro_ref_cnt()
} else { } else {
hold_ref_cnt_ = true; hold_ref_cnt_ = true;
} }
FLOG_INFO("the tablet that inner increases ref cnt is", FLOG_INFO("the tablet that inner increases ref cnt is", K(ret),
K(is_inited_), K(tablet_meta_.ls_id_), K(tablet_meta_.tablet_id_), K(table_store_addr_.addr_), K(is_inited_), K(tablet_meta_.ls_id_), K(tablet_meta_.tablet_id_), K(table_store_addr_.addr_),
K(auto_inc_seq_addr.addr_), K(storage_schema_addr_.addr_), K(medium_info_list_addr.addr_), K(auto_inc_seq_addr.addr_), K(storage_schema_addr_.addr_), K(medium_info_list_addr.addr_),
K(tablet_status_uncommitted_kv_addr.addr_), K(tablet_status_committed_kv_addr.addr_), K(tablet_status_uncommitted_kv_addr.addr_), K(tablet_status_committed_kv_addr.addr_),