always reset row iter when iterator used

This commit is contained in:
raywill
2023-07-05 07:48:11 +00:00
committed by ob-robot
parent 5f04d8ee95
commit cea8a51d2b

View File

@ -251,8 +251,10 @@ int ObPDMLOpDataDriver::write_partitions(ObExecContext &ctx)
// nop // nop
} else if (OB_FAIL(writer_->write_rows(ctx, tablet_loc, *row_iter))) { } else if (OB_FAIL(writer_->write_rows(ctx, tablet_loc, *row_iter))) {
LOG_WARN("fail write rows", K(tablet_id), K(ret)); LOG_WARN("fail write rows", K(tablet_id), K(ret));
} else { }
if (NULL != row_iter) {
row_iter->close(); row_iter->close();
row_iter = NULL;
} }
} }
} }