Commit 5b0cc4e8 authored by catch's avatar catch

Issue #2099893 by plach, Fabianx: Fixed [Stampede protection broken] Race...

Issue #2099893 by plach, Fabianx: Fixed [Stampede protection broken] Race condition in locking framework.
parent 6441e920
......@@ -463,6 +463,10 @@ class MemCacheDrupal implements DrupalCacheInterface {
* Helper function to load locking framework if not already loaded.
* @return bool
* Whether the locking system was initialized successfully. This must always
* return TRUE or throw an exception.
public function lockInit() {
// On a cache miss when page_cache_without_database is enabled, we can end
......@@ -471,6 +475,8 @@ class MemCacheDrupal implements DrupalCacheInterface {
if (!function_exists('lock_acquire')) {
return TRUE;
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