refactor: DB Updates will now file level lock to stop duplicate updates (#6469)

* refactor: DB Updates will now file level lock to stop duplicate updates

* scrut fixes

* renamed function from clear_lock() to release_lock()
This commit is contained in:
Neil Lathwood
2017-05-03 14:48:23 +01:00
committed by GitHub
parent 0dcc1d18c5
commit 41e7689c77
10 changed files with 82 additions and 27 deletions

View File

@@ -113,7 +113,9 @@ if (!$where) {
exit;
}
require 'includes/sql-schema/update.php';
if (get_lock('schema') === false) {
require 'includes/sql-schema/update.php';
}
$discovered_devices = 0;