8000 [Lock] read (possible) error from Redis instance where evalSha() was … · symfony/symfony@c3a0559 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit c3a0559

Browse files
xabbuhchalasr
authored andcommitted
[Lock] read (possible) error from Redis instance where evalSha() was called
1 parent e2a8117 commit c3a0559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function evaluate(string $script, string $resource, array $args): mixed
264264
$client = $this->redis->_instance($this->redis->_target($resource));
265265
$client->clearLastError();
266266
$result = $client->evalSha($scriptSha, array_merge([$resource], $args), 1);
267-
if (null !== ($err = $this->redis->getLastError()) && str_starts_with($err, self::NO_SCRIPT_ERROR_MESSAGE_PREFIX)) {
267+
if (null !== ($err = $client->getLastError()) && str_starts_with($err, self::NO_SCRIPT_ERROR_MESSAGE_PREFIX)) {
268268
$client->clearLastError();
269269

270270
$client->script('LOAD', $script);

0 commit comments

Comments
 (0)
0