Skip to content

Commit

Permalink
Merge pull request #65848 from yuzefovich/backport21.1-65819
Browse files Browse the repository at this point in the history
release-21.1: colexecutils: make closure of nil spilling queue a no-op
  • Loading branch information
yuzefovich authored May 29, 2021
2 parents 506159b + 77c8069 commit 4837b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/colexec/colexecutils/spilling_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func (q *SpillingQueue) MemoryUsage() int64 {

// Close closes the spilling queue.
func (q *SpillingQueue) Close(ctx context.Context) error {
if q.closed {
if q == nil || q.closed {
return nil
}
if q.diskQueue != nil {
Expand Down

0 comments on commit 4837b15

Please sign in to comment.