release row iterator resource even if execution was interrupted

This commit is contained in:
raywill
2023-07-03 02:42:12 +00:00
committed by ob-robot
parent d2584bccf2
commit cbcf416ad5

View File

@ -90,6 +90,9 @@ private:
~ReturningCtx() = default;
void reset()
{
if (row_iter_) {
row_iter_->close();
}
tablet_id_array_.reset();
next_idx_ = 0;
row_iter_ = NULL;