Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the condition cursor instead of aux iterator when creating a nil condition cursor #6860

Merged
merged 1 commit into from
Jun 17, 2016

Conversation

jsternberg
Copy link
Contributor

A copy/paste error had nil cursors destined for a condition cursor get
set to the auxiliary cursor instead. When the number of conditions
exceeded the number of auxiliary fields, this would result in a stack
trace in some situations. When the number of conditions was less than or
equal to the number of auxiliary fields, it means that an auxiliary
cursor may have been overwritten with a nil cursor accidentally and a
leak might have happened since it was never closed.

Fixes #6859.

@jsternberg jsternberg added this to the 1.0.0 milestone Jun 17, 2016
@jwilder
Copy link
Contributor

jwilder commented Jun 17, 2016

👍

…condition cursor

A copy/paste error had nil cursors destined for a condition cursor get
set to the auxiliary cursor instead. When the number of conditions
exceeded the number of auxiliary fields, this would result in a stack
trace in some situations. When the number of conditions was less than or
equal to the number of auxiliary fields, it means that an auxiliary
cursor may have been overwritten with a nil cursor accidentally and a
leak might have happened since it was never closed.

Fixes #6859.
@jsternberg jsternberg force-pushed the js-6859-condition-nil-iterator-panic branch from d517286 to 6e205ce Compare June 17, 2016 19:55
@jsternberg jsternberg merged commit 551cb61 into master Jun 17, 2016
@jsternberg jsternberg deleted the js-6859-condition-nil-iterator-panic branch June 17, 2016 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

index out of range panic on COUNT() query with WHERE clause
2 participants