add abort() for sanity build when tsc iter is not released

This commit is contained in:
obdev 2023-02-14 10:44:33 +00:00 committed by ob-robot
parent 5d5bdf2da6
commit 8e89a8e323

View File

@ -163,6 +163,9 @@ ObDASScanOp::~ObDASScanOp()
if (result_ != nullptr && result_->get_type() == ObNewRowIterator::ObTableScanIterator) {
LOG_ERROR_RET(OB_ERR_UNEXPECTED, "table scan iter is not released, maybe some bug occured",
KPC(scan_ctdef_), K(scan_param_), KPC(scan_rtdef_));
#ifdef ENABLE_SANITY
abort();
#endif
}
scan_param_.destroy();
}