summaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache/Factory.php
diff options
context:
space:
mode:
authorMichaIng <micha@dietpi.com>2021-07-05 23:11:13 +0200
committerGitHub <noreply@github.com>2021-07-05 23:11:13 +0200
commit0304eea58d28a230a11b389f97d25250b901be35 (patch)
tree9ee8caa20240c61167ab4c52bede7561cc7be2db /lib/private/Memcache/Factory.php
parent26efbe982e634fb4b85b72d1126e994e12e010be (diff)
downloadnextcloud-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.php2
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;
}