Commit 66a07ec3 authored by ueli heuer's avatar ueli heuer 👾
Browse files

Change "INSERT DELAYED INTO ..." to "INSERT INTO ..." - innodb does not support delayed

parent 4b2a9371
......@@ -1136,7 +1136,7 @@ sub data_cb($$$$$$$@) # {{{
} else {
if (defined($val) && defined($delta_value) && defined($delta_time) ) {
$db->do(sprintf(
"INSERT DELAYED INTO dvg_device_value(id,device_id,
"INSERT INTO dvg_device_value(id,device_id,
arg_id,last_sample,delta_value,delta_time,time)
VALUES(null,'%d','%d',%s,%s,%s,%s)",
$device_id,$n,$val,$delta_value,$delta_time,$now));
......@@ -1158,9 +1158,9 @@ sub data_cb($$$$$$$@) # {{{
if ($out eq 'U') { $out = undef; }
if (defined($in) && defined($out)) {
$db->do(sprintf(
"insert delayed into
"INSERT INTO
dvg_device_traffic(id,dev_id,module_id,time,in_octets,out_octets)
values (null, '%d', '%d', '%s', '$in', '$out')",
VALUES (null, '%d', '%d', '%s', '$in', '$out')",
$device_id,5,$now)); # 5 -> device_module
Unix::Syslog::syslog (LOG_DEBUG,
"D_CB: insert into dvg_device_traffic " .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment