bail out if we can't get a lock on schema_update

This commit is contained in:
Clint Armstrong
2015-08-25 11:35:24 -04:00
parent a47ae33cfd
commit 86e0f42dc7
+5
View File
@@ -31,6 +31,11 @@ if (!isset($debug)) {
}
}
if (!dbGetLock('schema_update')) {
echo "Schema update already in progress. Exiting";
exit(1);
}
$insert = 0;
if ($db_rev = @dbFetchCell('SELECT version FROM `dbSchema` ORDER BY version DESC LIMIT 1')) {