Commit 32c1b1e6 authored by catch's avatar catch
Browse files

Issue #1477446 by pounard, amateescu, tstoeckler: Move lock backend to PSR-0 code.

parent d79b9359
......@@ -300,7 +300,7 @@ function install_begin_request(&$install_state) {
$conf['cache_classes'] = array('cache' => 'Drupal\Core\Cache\InstallBackend');
// The install process cannot use the database lock backend since the database
// is not fully up, so we use a null backend implementation durting the
// is not fully up, so we use a null backend implementation during the
// installation process. This will also speed up the installation process.
// The site being installed will use the real lock backend when doing AJAX
// requests but, except for a WSOD, there is no chance for a a lock to stall
......
......@@ -71,9 +71,9 @@ function lock() {
// Do not allow a WSOD here, if the class does not exists use the default
// one.
// @todo: We should log failed class loading for debugging, but for that we
// need an early watchdog function that logs into a file if the database is
// not present.
// @todo We should log failed class loading for debugging, but for that we
// need an early watchdog function that logs into a file if the database
// is not present.
if (class_exists($class_name)) {
$lock_backend = new $class_name();
}
......
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