Skip to content

Commit 95cf995

Browse files
author
Joe Bennett
committed
#27345 Updated warnings in order of importance
1 parent 8a4f019 commit 95cf995

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

components/lock.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -466,18 +466,21 @@ method uses the Memcached's ``flush()`` method which purges and removes everythi
466466
MongoDbStore
467467
~~~~~~~~~~~~
468468

469-
The locked resouce name is indexed in the ``_id`` field of the lock collection.
470-
An indexed field's value in MongoDB can be a maximum of 1024 bytes in length
471-
inclusive of structural overhead.
469+
.. caution::
470+
471+
The locked resouce name is indexed in the ``_id`` field of the
472+
lock collection.
473+
An indexed field's value in MongoDB can be a maximum of 1024 bytes in
474+
length inclusive of structural overhead.
472475

473476
For more details see: https://docs.mongodb.com/manual/reference/limits/#Index-Key-Limit
474477

475478
.. caution::
476479

477480
This store relies on all client and server nodes to have
478481
synchronized clocks for lock expiry to occur at the correct time.
479-
To ensure locks don't expire prematurely; the ttl's should be set with enough
480-
extra time to account for any clock drift between nodes.
482+
To ensure locks don't expire prematurely; the lock TTL should be set
483+
with enough extra time to account for any clock drift between nodes.
481484

482485
A TTL index MUST BE used on MongoDB 2.2+ to automatically clean up expired locks.
483486

@@ -495,8 +498,9 @@ to create the TTL index during setup.
495498

496499
For more details see: http://docs.mongodb.org/manual/tutorial/expire-data/
497500

498-
writeConcern, readConcern and readPreference are not specified by MongoDbStore
499-
meaning the collection's settings will take effect.
501+
``writeConcern``, ``readConcern`` and ``readPreference`` are not specified by
502+
MongoDbStore meaning the collection's settings will take effect.
503+
500504
For more details see: https://docs.mongodb.com/manual/applications/replication/
501505

502506
RedisStore

0 commit comments

Comments
 (0)