Skip to content

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

Merged
merged 8 commits into from
Dec 6, 2022

Conversation

kkloberdanz
Copy link
Contributor

@kkloberdanz kkloberdanz commented Dec 2, 2022

CDRIVER-4295

Implement snapshot query example number two for the manual.

Related: DRIVERS-2181

@kkloberdanz kkloberdanz marked this pull request as ready for review December 5, 2022 15:55
@kevinAlbs kevinAlbs requested review from vector-of-bool and removed request for galon1 December 5, 2022 19:59
Copy link
Collaborator

@kevinAlbs kevinAlbs left a 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 ();
Copy link
Collaborator

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.

@kkloberdanz kkloberdanz merged commit 30fdc1c into mongodb:master Dec 6, 2022
@kkloberdanz
Copy link
Contributor Author

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.

@vector-of-bool
Copy link
Contributor

No trouble. LGTM

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