Pause polling and discovery if there's an update-lock

This commit is contained in:
f0o
2015-09-01 14:14:50 +01:00
parent ccfdddeae6
commit e11f613bdd
3 changed files with 16 additions and 4 deletions
+7
View File
@@ -100,6 +100,13 @@ if (isset($options['r'])) {
$config['norrd'] = true;
}
echo 'Checking for MySQL Locks:';
while (!dbCheckLock('schema_update')) {
echo '.';
sleep(1);
}
echo PHP_EOL;
rrdtool_pipe_open($rrd_process, $rrd_pipes);
echo "Starting polling run:\n\n";