X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=blobdiff_plain;f=includes%2Fpoolcounter%2FPoolCounterRedis.php;h=5e8db070aaf38ebb8f084b681245f0c63e2685e6;hb=960e4d09cafeb4d655e0beb08639c270ca60d2b8;hp=f2c59d2da1e8959f769687acee486b16f63d608b;hpb=fc05a13a2d144c97636588220150b8a72c976b9b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/poolcounter/PoolCounterRedis.php b/includes/poolcounter/PoolCounterRedis.php index f2c59d2da1..5e8db070aa 100644 --- a/includes/poolcounter/PoolCounterRedis.php +++ b/includes/poolcounter/PoolCounterRedis.php @@ -246,7 +246,7 @@ LUA; } elseif ( $slot === 'QUEUE_WAIT' ) { // This process is now registered as waiting $keys = ( $doWakeup == self::AWAKE_ALL ) - // Wait for an open slot or wake-up signal (preferring the later) + // Wait for an open slot or wake-up signal (preferring the latter) ? [ $this->getWakeupListKey(), $this->getSlotListKey() ] // Just wait for an actual pool slot : [ $this->getSlotListKey() ]; @@ -292,7 +292,7 @@ LUA; local rMaxWorkers,rMaxQueue,rTimeout,rExpiry,rSess,rTime = unpack(ARGV) -- Initialize if the "next release" time sorted-set is empty. The slot key -- itself is empty if all slots are busy or when nothing is initialized. - -- If the list is empty but the set is not, then it is the later case. + -- If the list is empty but the set is not, then it is the latter case. -- For sanity, if the list exists but not the set, then reset everything. if redis.call('exists',kSlotsNextRelease) == 0 then redis.call('del',kSlots)