Commit 087fab2e authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review
Browse files

Merge "Bug 1814316: Checking memcached version if stats not available"

parents 492a7c4b 650fae55
......@@ -112,7 +112,10 @@ class Session {
$server_stats = $memcached->getStats();
if ($server_stats[$destination . ":" . $port]['pid'] <= 0) {
// can't reach the destination:port
throw new ConfigSanityException(get_string('nomemcachedserver', 'error', $server));
$server_version = $memcached->getVersion();
if (empty($server_version[$destination . ":" . $port])) {
throw new ConfigSanityException(get_string('nomemcachedserver', 'error', $server));
}
}
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment