From: janw Date: Fri, 3 Apr 2009 15:21:49 +0000 (+0000) Subject: Removed use of recreate_database. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=329e2ae08b08ed6ee30315ea08bac460b3ad6134;p=gosa.git Removed use of recreate_database. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13578 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index 93aa51bab..e31fbf00f 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -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();