diff options
author | MichaIng <micha@dietpi.com> | 2021-07-05 23:11:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 23:11:13 +0200 |
commit | 0304eea58d28a230a11b389f97d25250b901be35 (patch) | |
tree | 9ee8caa20240c61167ab4c52bede7561cc7be2db /lib/private/Memcache/Factory.php | |
parent | 26efbe982e634fb4b85b72d1126e994e12e010be (diff) | |
download | nextcloud-server-0304eea58d28a230a11b389f97d25250b901be35.tar.gz nextcloud-server-0304eea58d28a230a11b389f97d25250b901be35.zip |
Fix in locking cache check
The intention obviously was to check whether $lockingCacheClass is defined, and existing class, and available. It was however checked whether the $distributedCacheClass is an existing class, which would have caused an exception already in the previous distributed cache check.
Signed-off-by: MichaIng <micha@dietpi.com>
Diffstat (limited to 'lib/private/Memcache/Factory.php')
-rw-r--r-- | lib/private/Memcache/Factory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Memcache/Factory.php b/lib/private/Memcache/Factory.php index 28a84308edc..08f19e11ef3 100644 --- a/lib/private/Memcache/Factory.php +++ b/lib/private/Memcache/Factory.php @@ -95,7 +95,7 @@ class Factory implements ICacheFactory { '{class}' => $distributedCacheClass, '{use}' => 'distributed' ]), $missingCacheHint); } - if (!($lockingCacheClass && class_exists($distributedCacheClass) && $lockingCacheClass::isAvailable())) { + if (!($lockingCacheClass && class_exists($lockingCacheClass) && $lockingCacheClass::isAvailable())) { // don't fallback since the fallback might not be suitable for storing lock $lockingCacheClass = self::NULL_CACHE; } |