mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Use memcached to lock daily processes on Distributed Pollers (#7735)
* fix: use memcached to lock daily processes on Distributed Pollers * All the locks!
This commit is contained in:
committed by
Neil Lathwood
parent
9c0a74debb
commit
2e73b75297
@@ -11,6 +11,8 @@
|
||||
* @copyright (C) 2006 - 2012 Adam Armstrong
|
||||
*/
|
||||
|
||||
use LibreNMS\Util\FileLock;
|
||||
|
||||
$init_modules = array('discovery');
|
||||
require __DIR__ . '/includes/init.php';
|
||||
|
||||
@@ -33,7 +35,7 @@ if (isset($options['h'])) {
|
||||
$where = ' ';
|
||||
$doing = 'all';
|
||||
} elseif ($options['h'] == 'new') {
|
||||
$new_discovery_lock = \LibreNMS\FileLock::lockOrDie('new-discovery');
|
||||
$new_discovery_lock = FileLock::lockOrDie('new-discovery');
|
||||
$where = 'AND `last_discovered` IS NULL';
|
||||
$doing = 'new';
|
||||
} elseif ($options['h']) {
|
||||
|
Reference in New Issue
Block a user