Skip to content

Commit 188c186

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: #37139 Updated Lock MongoDbStore note on readPreference
2 parents 12f8088 + e905ac8 commit 188c186

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/lock.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,10 @@ about `Expire Data from Collections by Setting TTL`_ in MongoDB.
762762
locks don't expire prematurely; the lock TTL should be set with enough extra
763763
time in ``expireAfterSeconds`` to account for any clock drift between nodes.
764764

765-
``writeConcern``, ``readConcern`` and ``readPreference`` are not specified by
766-
MongoDbStore meaning the collection's settings will take effect. Read more
767-
about `Replica Set Read and Write Semantics`_ in MongoDB.
765+
``writeConcern`` and ``readConcern`` are not specified by MongoDbStore meaning
766+
the collection's settings will take effect.
767+
``readPreference`` is ``primary`` for all queries.
768+
Read more about `Replica Set Read and Write Semantics`_ in MongoDB.
768769

769770
PdoStore
770771
~~~~~~~~~~

0 commit comments

Comments
 (0)