Skip to content

Commit 69599a1

Browse files
xabbuhchalasr
authored andcommitted
[Lock] read (possible) error from Redis instance where evalSha() was called
1 parent 0436a01 commit 69599a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)