8000 [Lock] compatiblity with redis cluster 7 · symfony/symfony@9ebf742 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ebf742

Browse files
committed
[Lock] compatiblity with redis cluster 7
1 parent 6b550a1 commit 9ebf742

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Lock/Store/RedisStore.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ private function getNowCode(): string
317317
try {
318318
$this->supportTime = 1 === $this->evaluate($script, 'symfony_check_support_time', []);
319319
} catch (LockStorageException $e) {
320-
if (false === strpos($e->getMessage(), 'commands not allowed after non deterministic')) {
320+
if (false === strpos($e->getMessage(), 'commands not allowed after non deterministic')
321+
&& false === strpos($e->getMessage(), 'is not allowed from script script')) {
321322
throw $e;
322323
}
323324
$this->supportTime = false;

0 commit comments

Comments
 (0)
0