Files
agc_2-X/extras/ConfBridge/AST_DB_optimize.pl.diff
T
mattf 2f0885fae3 Added BETA support for ConfBridge with Asterisk 16 and VICIdial
git-svn-id: svn://192.168.202.10@3623 3d104415-ff17-0410-8863-d5cf3c621b8a
2022-08-27 12:38:15 +00:00

23 lines
662 B
Diff

--- AST_DB_optimize.pl.old 2022-08-26 16:00:06.989647473 -0400
+++ AST_DB_optimize.pl 2022-08-26 15:59:47.605714442 -0400
@@ -293,6 +293,19 @@
$sthA->finish();
}
+$stmtA = "optimize table vicidial_confbridges;";
+if($DB){print STDERR "\n|$stmtA|\n";}
+if (!$T)
+ {
+ $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
+ $sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
+ $sthArows=$sthA->rows;
+ @aryA = $sthA->fetchrow_array;
+ if (!$q) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";}
+ $sthA->finish();
+ }
+
+
$stmtA = "optimize table vicidial_hopper;";
if($DB){print STDERR "\n|$stmtA|\n";}
if (!$T)