Do not compress stale data in LIFO mode.

This commit is contained in:
Ramon Novoa 2020-09-03 16:14:35 +02:00
parent 82255b154e
commit 669d35b4ff
1 changed files with 2 additions and 2 deletions

View File

@ -1737,8 +1737,8 @@ sub pandora_process_module ($$$$$$$$$;$) {
if ($pa_config->{'dataserver_lifo'} == 1 && $utimestamp <= $agent_status->{'utimestamp'}) { if ($pa_config->{'dataserver_lifo'} == 1 && $utimestamp <= $agent_status->{'utimestamp'}) {
logger($pa_config, "Received stale data from agent " . (defined ($agent) ? "'" . $agent->{'nombre'} . "'" : 'ID ' . $module->{'id_agente'}) . ".", 10); logger($pa_config, "Received stale data from agent " . (defined ($agent) ? "'" . $agent->{'nombre'} . "'" : 'ID ' . $module->{'id_agente'}) . ".", 10);
# Save module data. Async and log4x modules are not compressed. # Save module data. Compression does not work for stale data.
if ($module_type =~ m/(async)|(log4x)/ || $save == 1) { if ($module->{'history_data'} == 1) {
save_module_data ($data_object, $module, $module_type, $utimestamp, $dbh); save_module_data ($data_object, $module, $module_type, $utimestamp, $dbh);
} }