Skip to content

rename example to 'Snapshot Query Example 1' #1151

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 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/libmongoc/tests/test-mongoc-sample-commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -2556,7 +2556,7 @@ accumulate_adoptable_count (const mongoc_client_session_t *cs,
"{",
"$match",
"{",
"adoptable",
"adoptable",
BCON_BOOL (true),
"}",
"}",
Expand Down Expand Up @@ -2603,7 +2603,7 @@ accumulate_adoptable_count (const mongoc_client_session_t *cs,
static void
test_example_59 (mongoc_database_t *db)
{
/* Start Example 59 */
/* Start Snapshot Query Example 1 */
mongoc_client_t *client = NULL;
mongoc_client_session_t *cs = NULL;
mongoc_collection_t *cats_collection = NULL;
Expand Down Expand Up @@ -2659,21 +2659,21 @@ test_example_59 (mongoc_database_t *db)

printf ("there are %" PRId64 " adoptable pets\n", adoptable_pets_count);

/* End Example 59 */
/* End Snapshot Query Example 1 */

if (adoptable_pets_count != 2) {
MONGOC_ERROR (
"there should be exatly 2 adoptable_pets_count, found: %" PRId64,
adoptable_pets_count);
}

/* Start Example 59 Post */
/* Start Snapshot Query Example 1 Post */
cleanup:
mongoc_collection_destroy (dogs_collection);
mongoc_collection_destroy (cats_collection);
mongoc_client_session_destroy (cs);
mongoc_client_destroy (client);
/* End Example 59 Post */
/* End Snapshot Query Example 1 Post */
}

/* clang-format off */
Expand Down