fix schema update calling set_lock() (#6563)

This commit is contained in:
Neil Lathwood
2017-05-03 17:15:54 +01:00
committed by Tony Murray
parent 4dbab407bb
commit 23fa26b2b1

View File

@@ -15,8 +15,6 @@
* See COPYING for more details.
*/
set_lock('schema');
if (!isset($debug) && php_sapi_name() == 'cli') {
// Not called from within discovery, let's load up the necessary stuff.
$init_modules = array();
@@ -26,6 +24,8 @@ if (!isset($debug) && php_sapi_name() == 'cli') {
$debug = isset($options['d']);
}
set_lock('schema');
d_echo("DB Schema update started....\n");
if (db_schema_is_current()) {