8000 bug #60238 [Lock] read (possible) error from Redis instance where eva… · symfony/symfony@c95fe4a · GitHub
[go: up one dir, main page]

Skip to content

Commit c95fe4a

Browse files
committed
bug #60238 [Lock] read (possible) error from Redis instance where evalSha() was called (xabbuh)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [Lock] read (possible) error from Redis instance where evalSha() was called | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- c3a0559 [Lock] read (possible) error from Redis instance where evalSha() was called
2 parents e2a8117 + c3a0559 commit c95fe4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1Lines 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