Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98574f5

Browse files
author
Joe Bennett
committed
#37139 Updated Lock MongoDbStore note on readPreference
1 parent e464daf commit 98574f5

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
@@ -647,9 +647,10 @@ about `Expire Data from Collections by Setting TTL`_ in MongoDB.
647647
locks don't expire prematurely; the lock TTL should be set with enough extra
648648
time in ``expireAfterSeconds`` to account for any clock drift between nodes.
649649

650-
``writeConcern``, ``readConcern`` and ``readPreference`` are not specified by
651-
MongoDbStore meaning the collection's settings will take effect. Read more
652-
about `Replica Set Read and Write Semantics`_ in MongoDB.
650+
``writeConcern`` and ``readConcern`` are not specified by MongoDbStore meaning
651+
the collection's settings will take effect.
652+
``readPreference`` is ``primary`` for all queries.
653+
Read more about `Replica Set Read and Write Semantics`_ in MongoDB.
653654

654655
PdoStore
655656
~~~~~~~~~~

0 commit comments

Comments
 (0)