Skip to content

Commit

Permalink
symfony#27345 fixed token usage in MongoDbStore::putOffExpiration
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bennett committed Oct 15, 2018
1 parent b9c65c7 commit fd35c20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Symfony/Component/Lock/Store/MongoDbStore.php
Expand Up @@ -169,8 +169,8 @@ public function createTtlIndex(int $expireAfterSeconds = 0): string
*/
public function save(Key $key)
{
$token = $this->getUniqueToken($key);
$now = microtime(true);
$token = $this->getUniqueToken($key);

$filter = array(
'_id' => (string) $key,
Expand Down Expand Up @@ -244,6 +244,7 @@ public function waitAndSave(Key $key)
public function putOffExpiration(Key $key, $ttl)
{
$now = microtime(true);
$token = $this->getUniqueToken($key);

$filter = array(
'_id' => (string) $key,
Expand Down

0 comments on commit fd35c20

Please sign in to comment.