Unverified Commit 2d27a111 authored by Kevin Albertson's avatar Kevin Albertson Committed by GitHub
Browse files

CDRIVER-4556 Remove use of `collStats` (#1249)



* sync specification tests to commit 6632b7606e74c6e83ee2d80b7571f55485c7ff33

* remove runCommand Example 2

The example removed from DRIVERS-448.

* suggest $collStats in mongoc_collection_stats

* move example in mongoc_collection_command_simple to example source

* add missing declaration of `str`

* use `ping` instead of `collStats` command

* move Executing Commands code to example

* replace `collStats` with `ping`

* use `mongoc_client_command_simple`

To simplify the example.
There is no need to run the command with the mongoc_collection_t handle.

* remove note about returning cursors

`mongoc_collection_command`, `mongoc_database_command` and `mongoc_client_command` return a cursor. They are documented as `superseded` by other helpers.

* skip test using collStats on servers > 6.0

* remove redundant captions

Co-authored-by: default avatarEzra Chung <88335979+eramongodb@users.noreply.github.com>

---------

Co-authored-by: default avatarEzra Chung <88335979+eramongodb@users.noreply.github.com>
parent 25f99ee2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment