From 329e2ae08b08ed6ee30315ea08bac460b3ad6134 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 3 Apr 2009 15:21:49 +0000 Subject: [PATCH] Removed use of recreate_database. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13578 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/DBsqlite.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.30.2