From 4dfae3bcc7fe19df97cfc5e53838fa95297d512c Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Fri, 13 Sep 2019 03:37:16 +0000 Subject: [PATCH] Fix a typo (yeild -> yield) Bug: T201491 Change-Id: I70443514d55c681e51233b6e80ac7911c5e12d5a --- includes/libs/lockmanager/QuorumLockManager.php | 4 ++-- includes/libs/objectcache/MultiWriteBagOStuff.php | 2 +- includes/libs/objectcache/ReplicatedBagOStuff.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/libs/lockmanager/QuorumLockManager.php b/includes/libs/lockmanager/QuorumLockManager.php index 6478a61b14..83dcc6be56 100644 --- a/includes/libs/lockmanager/QuorumLockManager.php +++ b/includes/libs/lockmanager/QuorumLockManager.php @@ -152,7 +152,7 @@ abstract class QuorumLockManager extends LockManager { * This is all or nothing; if any key is already pledged then this totally fails. * * @param int $bucket - * @param callable $callback Pledge method taking a server name and yeilding a StatusValue + * @param callable $callback Pledge method taking a server name and yielding a StatusValue * @return StatusValue */ final protected function collectPledgeQuorum( $bucket, callable $callback ) { @@ -194,7 +194,7 @@ abstract class QuorumLockManager extends LockManager { * Attempt to release pledges with the peers for a bucket * * @param int $bucket - * @param callable $callback Pledge method taking a server name and yeilding a StatusValue + * @param callable $callback Pledge method taking a server name and yielding a StatusValue * @return StatusValue */ final protected function releasePledges( $bucket, callable $callback ) { diff --git a/includes/libs/objectcache/MultiWriteBagOStuff.php b/includes/libs/objectcache/MultiWriteBagOStuff.php index 51f7316424..77a78830e2 100644 --- a/includes/libs/objectcache/MultiWriteBagOStuff.php +++ b/includes/libs/objectcache/MultiWriteBagOStuff.php @@ -46,7 +46,7 @@ class MultiWriteBagOStuff extends BagOStuff { /** * $params include: * - caches: A numbered array of either ObjectFactory::getObjectFromSpec - * arrays yeilding BagOStuff objects or direct BagOStuff objects. + * arrays yielding BagOStuff objects or direct BagOStuff objects. * If using the former, the 'args' field *must* be set. * The first cache is the primary one, being the first to * be read in the fallback chain. Writes happen to all stores diff --git a/includes/libs/objectcache/ReplicatedBagOStuff.php b/includes/libs/objectcache/ReplicatedBagOStuff.php index ff87829086..9f953e1721 100644 --- a/includes/libs/objectcache/ReplicatedBagOStuff.php +++ b/includes/libs/objectcache/ReplicatedBagOStuff.php @@ -47,9 +47,9 @@ class ReplicatedBagOStuff extends BagOStuff { /** * Constructor. Parameters are: - * - writeFactory: ObjectFactory::getObjectFromSpec array yeilding BagOStuff. + * - writeFactory: ObjectFactory::getObjectFromSpec array yielding BagOStuff. * This object will be used for writes (e.g. the master DB). - * - readFactory: ObjectFactory::getObjectFromSpec array yeilding BagOStuff. + * - readFactory: ObjectFactory::getObjectFromSpec array yielding BagOStuff. * This object will be used for reads (e.g. a replica DB). * - sessionConsistencyWindow: Seconds to read from the master source for a key * after writing to it. [Default: ReplicatedBagOStuff::MAX_WRITE_DELAY] -- 2.20.1