Fix Expiring lock in PDO and ZooKeeper

This commit is contained in:
Jérémy Derussé 2019-06-17 20:41:36 +02:00
parent 1337dbff81
commit 4f808ef4f4
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@ use Symfony\Component\Lock\StoreInterface;
*/
class ZookeeperStore implements StoreInterface
{
use ExpiringStoreTrait;
private $zookeeper;
public function __construct(\Zookeeper $zookeeper)
@ -45,6 +47,8 @@ class ZookeeperStore implements StoreInterface
$token = $this->getUniqueToken($key);
$this->createNewLock($resource, $token);
$this->checkNotExpired($key);
}
/**