Skip to content

Commit 760f605

Browse files
authored
Merge pull request #65849 from yuzefovich/backport20.2-65819
release-20.2: colexecutils: make closure of nil spilling queue a no-op
2 parents 0ffb6cb + e83ca11 commit 760f605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sql/colexec/spilling_queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (q *spillingQueue) spilled() bool {
261261
}
262262

263263
func (q *spillingQueue) close(ctx context.Context) error {
264-
if q.closed {
264+
if q == nil || q.closed {
265265
return nil
266266
}
267267
if q.diskQueue != nil {

0 commit comments

Comments
 (0)