summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 762be93)
raw | patch | inline | side by side (parent: 762be93)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Apr 2008 10:19:43 +0000 (10:19 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Apr 2008 10:19:43 +0000 (10:19 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10669 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index f389e5f4370c86586bfc0c1c83e0e9b0261037a6..dd29fd8a7ba9732a03c50f4aa19c6f739ac945ae 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
daemon_log("$session_id DEBUG: Inserting ".scalar @sql_list." entries to DB",8);
if(@sql_list) {
- unshift @sql_list, "DELETE FROM $table_name"; # at first, clear db
+ unshift @sql_list, "VACUUM $table_name"; # at first vacuum the logs and clear the db
+ unshift @sql_list, "DELETE FROM $table_name";
$fai_release_db->exec_statementlist(\@sql_list);
}
daemon_log("$session_id DEBUG: Done with inserting",7);
# Use empty lines as a trigger
if ($line =~ /^\s*$/){
+ my $sql2 = "INSERT INTO packages_list VALUES ('$dist', '$package', '$version', '$section', '', 'none', '$timestamp')";
my $sql = "INSERT INTO packages_list VALUES ('$dist', '$package', '$version', '$section', '', 'none', '$timestamp')";
push(@packages_list_statements, $sql);
+ push(@packages_list_statements, $sql2);
$package = "none";
$version = "none";
$section = "none";