Skip to content

Commit ac621e5

Browse files
committed
Fix typo
1 parent 2a7923b commit ac621e5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

components/lock.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ support blocking, and expects a TTL to avoid stalled locks::
233233

234234
use Symfony\Component\Lock\Store\PdoStore;
235235

236-
237236
// a PDO, a Doctrine DBAL connection or DSN for lazy connecting through PDO
238237
$databaseConnectionOrDSN = 'mysql:host=127.0.0.1;dbname=lock';
239238
$store = new PdoStore($databaseConnectionOrDSN, ['db_username' => 'myuser', 'db_password' => 'mypassword']);
@@ -336,7 +335,7 @@ Remote Stores
336335

337336
Remote stores (:ref:`MemcachedStore <lock-store-memcached>`,
338337
:ref:`PdoStore <lock-store-pdo>` and :ref:`RedisStore <lock-store-redis>`) use
339-
an unique token to recognize the true owner of the lock. This token is stored
338+
a unique token to recognize the true owner of the lock. This token is stored
340339
in the :class:`Symfony\\Component\\Lock\\Key` object and is used internally by
341340
the ``Lock``, therefore this key must not be shared between processes (session,
342341
caching, fork, ...).
@@ -478,25 +477,25 @@ method uses the Memcached's ``flush()`` method which purges and removes everythi
478477
PdoStore
479478
~~~~~~~~~~
480479

481-
The PdoStore rely on the `ACID`_ properties of the SQL engine.
480+
The PdoStore relies on the `ACID`_ properties of the SQL engine.
482481

483482
.. caution::
484483

485-
In a cluster configured with multiple master, ensure writes are
484+
In a cluster configured with multiple primaries, ensure writes are
486485
synchronously propagated to every nodes, or always use the same node.
487486

488487
.. caution::
489488

490-
Some SQL engine like MySQL allows to disable unique constraint check.
489+
Some SQL engines like MySQL allow to disable the unique constraint check.
491490
Ensure that this is not the case ``SET unique_checks=1;``.
492491

493-
In order to purge old lock, this store use a current datetime to define a
492+
In order to purge old locks, this store uses a current datetime to define an
494493
expiration date reference. This mechanism relies on all server nodes to
495-
have synchronized clock.
494+
have synchronized clocks.
496495

497496
.. caution::
498497

499-
To ensure locks don't expire prematurely; the ttl's should be set with
498+
To ensure locks don't expire prematurely; the TTLs should be set with
500499
enough extra time to account for any clock drift between nodes.
501500

502501
RedisStore

0 commit comments

Comments
 (0)