Skip to content

Commit 18a6a91

Browse files
committed
sql: close input in update swap and delete swap
In #144186 I forgot to close the input in updateSwapNode.Close and deleteSwapNode.Close. Informs: #144186 Release note: None
1 parent aed749a commit 18a6a91

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/sql/delete_swap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func (d *deleteSwapNode) BatchedValues(rowIdx int) tree.Datums {
133133
}
134134

135135
func (d *deleteSwapNode) Close(ctx context.Context) {
136+
d.input.Close(ctx)
136137
d.run.td.close(ctx)
137138
*d = deleteSwapNode{}
138139
deleteSwapNodePool.Put(d)

pkg/sql/update_swap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func (u *updateSwapNode) BatchedValues(rowIdx int) tree.Datums {
133133
}
134134

135135
func (u *updateSwapNode) Close(ctx context.Context) {
136+
u.input.Close(ctx)
136137
u.run.tu.close(ctx)
137138
*u = updateSwapNode{}
138139
updateSwapNodePool.Put(u)

0 commit comments

Comments
 (0)