release row iterator resource even if execution was interrupted
This commit is contained in:
@ -90,6 +90,9 @@ private:
|
|||||||
~ReturningCtx() = default;
|
~ReturningCtx() = default;
|
||||||
void reset()
|
void reset()
|
||||||
{
|
{
|
||||||
|
if (row_iter_) {
|
||||||
|
row_iter_->close();
|
||||||
|
}
|
||||||
tablet_id_array_.reset();
|
tablet_id_array_.reset();
|
||||||
next_idx_ = 0;
|
next_idx_ = 0;
|
||||||
row_iter_ = NULL;
|
row_iter_ = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user