-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colexec: fix coalescing logic in the spilling queue
In a recently merged change to the spilling queue we introduced a bug in the coalescing logic - we incorrectly computed the index of the "tail" batch in case when it is the last one in the in-memory buffer. This could lead to multiple problems (modification of the filled-up batch, of the already dequeued batch, etc). This is now fixed. Additionally, this commit switches to using `Copy` instead of `Append` in that coalescing logic (since we know that there is enough capacity for all of the tuples we're appending) and sets the item to `nil` when it was dequeued. Release note: None (no stable release with this bug)
- Loading branch information
1 parent
46f5cca
commit 9be814e
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters