diff --git a/source/use-cases/storing-log-data.txt b/source/use-cases/storing-log-data.txt index 534dff3ecee..6dbadb12518 100644 --- a/source/use-cases/storing-log-data.txt +++ b/source/use-cases/storing-log-data.txt @@ -247,7 +247,7 @@ 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 @@ -255,7 +255,7 @@ 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