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

Fix error when counting a closed cursor #96

Merged
merged 1 commit into from
Apr 12, 2016
Merged

Conversation

alcaeus
Copy link
Owner

@alcaeus alcaeus commented Apr 11, 2016

Fixes #95.

This removes a performance improvement designed to not issue a count command when the foundOnly option is set to true and the cursor has been opened. Unfortunately, when the generator wrapping the original result cursor is closed, iterator_count causes an error.

@alcaeus alcaeus added the bug label Apr 11, 2016
@alcaeus alcaeus added this to the 1.0.3 milestone Apr 11, 2016
@alcaeus alcaeus changed the title Fix erorr when counting a closed cursor Fix error when counting a closed cursor Apr 12, 2016
@alcaeus alcaeus merged commit 83f69d3 into 1.0.x Apr 12, 2016
@alcaeus alcaeus deleted the fix-count-cursor-closed branch April 12, 2016 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant