mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Reset recon task progress at startup.
(cherry picked from commit a5c9da2a569dc4c8645e82f1c7e07325eb09cb9c)
This commit is contained in:
parent
9c291fe82b
commit
6a98ac8288
@ -70,6 +70,9 @@ sub new ($$$$$$) {
|
||||
$Sem = Thread::Semaphore->new;
|
||||
$TaskSem = Thread::Semaphore->new (0);
|
||||
|
||||
db_do ($dbh, 'UPDATE trecon_task SET utimestamp = 0 WHERE id_recon_server = ? AND status <> -1',
|
||||
get_server_id ($dbh, $config->{'servername'}, RECONSERVER));
|
||||
|
||||
# Call the constructor of the parent class
|
||||
my $self = $class->SUPER::new($config, RECONSERVER, \&PandoraFMS::ReconServer::data_producer, \&PandoraFMS::ReconServer::data_consumer, $dbh);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user