Revert "Ent 5553 dangerous behaviour dataserver lifo enabled"

This reverts commit 9541d3b56dfe193f0778980cd19ed74e8ecaea2f.
This commit is contained in:
Ramon Novoa 2020-09-03 16:13:21 +02:00
parent d88efc39da
commit 82255b154e

View File

@ -1739,17 +1739,6 @@ sub pandora_process_module ($$$$$$$$$;$) {
# Save module data. Async and log4x modules are not compressed.
if ($module_type =~ m/(async)|(log4x)/ || $save == 1) {
# If previous timestamp data changes, save the last one to avoid errors on SLA or graphs.
if($last_data_value ne $processed_data) {
my $last_data_timestamp = $agent_status->{'utimestamp'};
my $last_data_object;
$last_data_object->{'data'} = $last_data_value;
save_module_data ($last_data_object, $module, $module_type, $last_data_timestamp, $dbh);
}
save_module_data ($data_object, $module, $module_type, $utimestamp, $dbh);
}