Skip to content

Using str instead of a declared variable for majority #993

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 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions source/use-cases/storing-log-data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,15 @@ you can require that MongoDB replicate the data to multiple

.. code-block:: pycon

>>> db.events.insert(event, w=majority)
>>> db.events.insert(event, w='majority')

This will force your application to acknowledge that the data has
replicated to a majority of configured members of the :term:`replica set`. You can combine
options as well:

.. code-block:: pycon

>>> db.events.insert(event, j=True, w=majority)
>>> db.events.insert(event, j=True, w='majority')

In this case, your application will wait for a successful journal
commit on the :term:`primary` *and* a replication acknowledgment from
Expand Down