[CP] Fix rescan hold macro handle too long

This commit is contained in:
obdev
2023-02-09 14:50:19 +00:00
committed by ob-robot
parent 684805c1c8
commit 4db1bc4fae
5 changed files with 46 additions and 0 deletions

View File

@ -333,5 +333,21 @@ int ObMicroBlockHandleMgr::put_micro_block_handle(
return ret;
}
int ObMicroBlockHandleMgr::reset_handle_cache()
{
int ret = OB_SUCCESS;
if (IS_NOT_INIT) {
ret = OB_NOT_INIT;
STORAGE_LOG(WARN, "block handle mgr is not inited", K(ret));
} else if (is_multi_) {
if (is_ordered_) {
last_handle_->reset();
} else {
handle_cache_->reset_handles();
}
}
return ret;
}
}
}