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

Use handleCallback if result is an error for count queries #1298

Merged
merged 1 commit into from
Sep 25, 2015

Conversation

agclever
Copy link

Right now, if the result is a single document with error, the application callback is called directly. This means that if the application code throws an exception, it gets propagated to the driver code causing unexpected behavior (server topology being destroyed in my case).

Using handleCallback ensures that in this scenario, the exception does not get propagated to the driver code.

@MaerF0x0
Copy link
Contributor

what, no tests? :trollface:

@christkv christkv merged commit c8bc343 into mongodb:2.0 Sep 25, 2015
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.

3 participants