free old tablet set in the destroy function of the ls

Co-authored-by: KyrielightWei <weixx1203@outlook.com>
This commit is contained in:
obdev 2023-05-17 15:51:59 +00:00 committed by ob-robot
parent 827b288161
commit 2054cbdabf
2 changed files with 5 additions and 0 deletions

View File

@ -451,6 +451,10 @@ int ObLSDupTabletsMgr::destroy_free_tablet_pool_()
if (OB_NOT_NULL(removing_old_set_)) {
return_tablet_set(removing_old_set_);
if (free_set_pool_.add_last(removing_old_set_) == false) {
ret = OB_ERR_UNEXPECTED;
DUP_TABLE_LOG(ERROR, "insert into free set failed", K(ret), KPC(removing_old_set_));
}
removing_old_set_ = nullptr;
}

View File

@ -451,6 +451,7 @@ void ObDupTableLSHandler::reset()
ob_free(tablets_mgr_ptr_);
}
if (OB_NOT_NULL(log_operator_)) {
log_operator_->reset();
share::mtl_free(log_operator_);
}