[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.
const ObIArray<ObTmpFileExtent *> &extents = file_meta_.get_extents();
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));
} else {
// get extents block id set.