From 7f6149a13ee07db0b8b603b04d23b7d1e2a432e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Puente=20Sarr=C3=ADn?= Date: Tue, 14 May 2013 23:15:54 -0500 Subject: [PATCH] Using str instead of a declared variable for majority --- source/use-cases/storing-log-data.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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