From 7236103f026db744c81de675cbc8717f76d83add Mon Sep 17 00:00:00 2001 From: Paul Mehrer Date: Wed, 12 Feb 2020 11:58:31 +0100 Subject: [PATCH] fix(RedisProxy multi) handle failing to start a multi transaction we don't want to stay in multi state if starting multi failed --- library/Zend/RedisProxy.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Zend/RedisProxy.php b/library/Zend/RedisProxy.php index 3738efb93..d3cddd6a5 100644 --- a/library/Zend/RedisProxy.php +++ b/library/Zend/RedisProxy.php @@ -232,6 +232,8 @@ public function __call($_name, array $_arguments) if (false === $this->_redis->ping()) { throw new RedisException(); } + // if multi failed, reset multi state + $this->_inMulti = false; } return $result; } catch (RedisException $re) {