-
Notifications
You must be signed in to change notification settings - Fork 455
Kyle/snapshot example 2 #1156
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
Kyle/snapshot example 2 #1156
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one suggested change.
bson_iter_t iter; | ||
int64_t total_sales = 0; | ||
|
||
client = test_framework_new_default_client (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest constructing client
outside of the example comments. test_framework_new_default_client
is not a public API function.
I missed this before. Please also update test_example_59.
My mistake, I jumped the gun on merging this in before @vector-of-bool could add his review. I can re-open if you have any suggestions. |
No trouble. LGTM |
CDRIVER-4295
Implement snapshot query example number two for the manual.
Related: DRIVERS-2181