Skip to content

Commit e905ac8

Browse files
committed
minor symfony#13775 [Lock] #37139 Updated Lock MongoDbStore note on readPreference (kralos)
This PR was merged into the 5.1 branch. Discussion ---------- [Lock] #37139 Updated Lock MongoDbStore note on readPreference Fixed documentation around `readPreference` for `MongoDbStore` in `Lock` component. See symfony/symfony#37140 Commits ------- 98574f5 #37139 Updated Lock MongoDbStore note on readPreference
2 parents 0d92891 + 98574f5 commit e905ac8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/lock.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,10 @@ about `Expire Data from Collections by Setting TTL`_ in MongoDB.
682682
locks don't expire prematurely; the lock TTL should be set with enough extra
683683
time in ``expireAfterSeconds`` to account for any clock drift between nodes.
684684

685-
``writeConcern``, ``readConcern`` and ``readPreference`` are not specified by
686-
MongoDbStore meaning the collection's settings will take effect. Read more
687-
about `Replica Set Read and Write Semantics`_ in MongoDB.
685+
``writeConcern`` and ``readConcern`` are not specified by MongoDbStore meaning
686+
the collection's settings will take effect.
687+
``readPreference`` is ``primary`` for all queries.
688+
Read more about `Replica Set Read and Write Semantics`_ in MongoDB.
688689

689690
PdoStore
690691
~~~~~~~~~~

0 commit comments

Comments
 (0)