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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy