Skip to content

Commit

Permalink
minor symfony#13775 [Lock] #37139 Updated Lock MongoDbStore note on r…
Browse files Browse the repository at this point in the history
…eadPreference (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
  • Loading branch information
javiereguiluz committed Jan 27, 2021
2 parents 0d92891 + 98574f5 commit e905ac8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/lock.rst
Expand Up @@ -682,9 +682,10 @@ about `Expire Data from Collections by Setting TTL`_ in MongoDB.
locks don't expire prematurely; the lock TTL should be set with enough extra
time in ``expireAfterSeconds`` to account for any clock drift between nodes.

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

PdoStore
~~~~~~~~~~
Expand Down

0 comments on commit e905ac8

Please sign in to comment.