From 98574f5233c680e0e0a503355fd22ec3e286b4c7 Mon Sep 17 00:00:00 2001 From: Joe Bennett Date: Mon, 8 Jun 2020 15:51:01 +1000 Subject: [PATCH] #37139 Updated Lock MongoDbStore note on readPreference --- components/lock.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/lock.rst b/components/lock.rst index 6dfeb5518dc..257aa2d1cd8 100644 --- a/components/lock.rst +++ b/components/lock.rst @@ -647,9 +647,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 ~~~~~~~~~~