Skip to content

Commit

Permalink
[Lock] compatiblity with redis cluster 7
Browse files Browse the repository at this point in the history
  • Loading branch information
bastnic committed Mar 12, 2024
1 parent 6b550a1 commit a317352
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Symfony/Component/Lock/Store/RedisStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ private function getNowCode(): string
try {
$this->supportTime = 1 === $this->evaluate($script, 'symfony_check_support_time', []);
} catch (LockStorageException $e) {
if (false === strpos($e->getMessage(), 'commands not allowed after non deterministic')) {
if (false === strpos($e->getMessage(), 'commands not allowed after non deterministic') &&
false === strpos($e->getMessage(), 'is not allowed from script script')) {
throw $e;
}
$this->supportTime = false;
Expand Down

0 comments on commit a317352

Please sign in to comment.