Skip to content

Commit 1356f60

Browse files
committed
minor #15382 [Lock] Remove note about sharing the key (lyrixx)
This PR was merged into the 4.4 branch. Discussion ---------- [Lock] Remove note about sharing the key cc `@jderusse` BTW: we say the opposing above in the doc : https://symfony.com/doc/4.4/components/lock.html#serializing-locks Commits ------- 2d96ae0 [Lock] Remove note about sharing the key
2 parents 53b234d + 2d96ae0 commit 1356f60

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

components/lock.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,7 @@ Remote stores (:ref:`MemcachedStore <lock-store-memcached>`,
486486
:ref:`ZookeeperStore <lock-store-zookeeper>`) use a unique token to recognize
487487
the true owner of the lock. This token is stored in the
488488
:class:`Symfony\\Component\\Lock\\Key` object and is used internally by
489-
the ``Lock``, therefore this key must not be shared between processes (session,
490-
caching, fork, ...).
491-
492-
.. caution::
493-
494-
Do not share a key between processes.
489+
the ``Lock``.
495490

496491
Every concurrent process must store the ``Lock`` in the same server. Otherwise two
497492
different machines may allow two different processes to acquire the same ``Lock``.

0 commit comments

Comments
 (0)