Skip to content

Commit

Permalink
Fix Expiring lock in PDO and ZooKeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Jun 17, 2019
1 parent 1337dbf commit 4f808ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Lock/Store/ZookeeperStore.php
Expand Up @@ -25,6 +25,8 @@
*/
class ZookeeperStore implements StoreInterface
{
use ExpiringStoreTrait;

private $zookeeper;

public function __construct(\Zookeeper $zookeeper)
Expand All @@ -45,6 +47,8 @@ public function save(Key $key)
$token = $this->getUniqueToken($key);

$this->createNewLock($resource, $token);

$this->checkNotExpired($key);
}

/**
Expand Down

0 comments on commit 4f808ef

Please sign in to comment.