freebsd-ports/net/rtg/files/patch-etc-rtgtargmkr.pl.in
Stefan Walter a43ffc48e2 - Add rc.d script.
- Optimise db table creation with indexes.
- Add PID file option.
- Fix a few warnings in the Makefile.
- Assign maintainership to submitter.

PR:		145924
Submitted by:	Daniel Austin <freebsd-ports@dan.me.uk>
Feature safe:	yes
2010-06-30 20:05:46 +00:00

11 lines
643 B
Perl

--- etc/rtgtargmkr.pl.in.orig 2010-04-21 20:55:58.903081619 +0100
+++ etc/rtgtargmkr.pl.in 2010-04-21 20:56:15.567832088 +0100
@@ -126,7 +126,7 @@
&sql_insert($sql);
$rid = &find_router_id($router);
foreach $mib ( keys %mibs_of_interest ) {
- $sql = "CREATE TABLE $mib"."_$rid (id INT NOT NULL, dtime DATETIME NOT NULL, counter BIGINT NOT NULL, KEY $mib"."_$rid". "_idx (dtime))";
+ $sql = "CREATE TABLE $mib"."_$rid (id INT NOT NULL, dtime DATETIME NOT NULL, counter BIGINT NOT NULL, KEY $mib"."_$rid". "_idx (dtime), KEY id_dtime_idx (id,dtime))";
&sql_insert($sql);
}
}