Skip to content

DOCS-6874, DOCS-6942: read concern changes #2517

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

Closed
wants to merge 3 commits into from

Conversation

ksuarz
Copy link
Contributor

@ksuarz ksuarz commented Jan 14, 2016

This pull request has a variety of read-concern fixes:

  • Adds missing options for db.collection.count(), along with read concern
  • Fixes the syntax of using a read concern with count
  • Standardizes on "read concern" in writing and lines up the formatting with write concern

The db.collection.count() method actually takes two parameters: an options
dictionary, in addition to the query.
The readConcern() shell helper does not work with db.collection.count(), as
the latter is not a cursor method. (It returns an integer.)

Instead, use the options parameter with db.collection.count() to specify a
read concern. You can also chain cursor.count() to a db.collection.find()
command with a read concern, like so:

    db.collection.find().readConcern(<read-concern>).count()
When writing in text, favor "read concern." The camel-cased "readConcern" is
acceptable in code or when quoted in backticks as a literal. The read concern
and write concern pages now match each other in terms of naming.

This commit also has some minor formatting and grammar fixes in various read
concern-related pages.
@kay-kim
Copy link
Contributor

kay-kim commented Jan 14, 2016

merged

@kay-kim kay-kim closed this Jan 14, 2016
@ksuarz ksuarz deleted the readConcern branch January 14, 2016 19:32
mongo-cr-bot pushed a commit that referenced this pull request Feb 7, 2023
#2517)

* DOCSP-27277 - EOL Reference Cleanup for Database Commands (#2327) (#2515)

* DOCSP-27277 - EOL Reference Cleanup for Database Commands (#2327)

* DOCSP-27277 EOL version reference cleanup for Database Commands

* Refactors version references to use directive

* Version cleanup createIndexes and serverStatus

* EOL version cleanup for currentOp

* EOL version cleanup for currentOp

* EOL version cleanup for listDatabases

* EOL version cleanup for listDatabases

* EOL version cleanup for listCollections

* EOL version cleanup for listCollections

* EOL version cleanup for usersInfo

* EOL reference fixes for dbHash and updateUser

* EOL reference fixes for killOp replSetSyncFrom

* Fixes per Kyle Suarez

* Fixes per Kyle Suarez.

Co-authored-by: Kyle Suarez <ksuarz@gmail.com>

---------

Co-authored-by: Kyle Suarez <ksuarz@gmail.com>

* Reverts text to fix build errors

* Fixes indentation from cherry-pick

---------

Co-authored-by: Kyle Suarez <ksuarz@gmail.com>

* Fixes format issue

---------

Co-authored-by: Kyle Suarez <ksuarz@gmail.com>
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.

2 participants