Code

Removed use of recreate_database.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Apr 2009 15:21:49 +0000 (15:21 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Apr 2009 15:21:49 +0000 (15:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13578 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/DBsqlite.pm

index 93aa51bab858d173ab9587578b71e19c2d79dc2b..e31fbf00fbc4a8222cb49b1c53a79181646a7df8 100644 (file)
@@ -469,7 +469,10 @@ sub exec_statement {
                &main::daemon_log("0 DEBUG: $sql_statement succeeded.", 9);
        };
        if($@) {
-               $self->recreate_database();
+               eval {
+                       $self->{dbh}->do("ANALYZE");
+                       $self->{dbh}->do("VACUUM");
+               };
        }
        if($success) {
                $self->unlock();