From 2d96ae07b90f8615f2fdac1fbe2e1d27be877a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Thu, 27 May 2021 20:44:03 +0200 Subject: [PATCH] [Lock] Remove note about sharing the key --- components/lock.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/lock.rst b/components/lock.rst index 4cd5cdb7726..3789cb5d22a 100644 --- a/components/lock.rst +++ b/components/lock.rst @@ -486,12 +486,7 @@ Remote stores (:ref:`MemcachedStore `, :ref:`ZookeeperStore `) use a unique token to recognize the true owner of the lock. This token is stored in the :class:`Symfony\\Component\\Lock\\Key` object and is used internally by -the ``Lock``, therefore this key must not be shared between processes (session, -caching, fork, ...). - -.. caution:: - - Do not share a key between processes. +the ``Lock``. Every concurrent process must store the ``Lock`` in the same server. Otherwise two different machines may allow two different processes to acquire the same ``Lock``.