change sqlite3 default threading mode to no-mutex, disable memory

statistics, finalize prepared statement before exitting logger.

This might fix the deadlock issue, at least it did not happen for
me on my tried on the test system where it happened quite regularly
before.
This commit is contained in:
Bernhard Amann 2013-05-17 13:38:26 -07:00
parent 945aa8a550
commit bd02da8a0c
3 changed files with 10 additions and 3 deletions

View file

@ -35,13 +35,16 @@ SQLite::SQLite(WriterFrontend* frontend) : WriterBackend(frontend)
db = 0;
io = new AsciiFormatter(this, AsciiFormatter::SeparatorInfo(set_separator, unset_field, empty_field));
st = 0;
}
SQLite::~SQLite()
{
if ( db != 0 )
{
sqlite3_close(db);
sqlite3_finalize(st);
if ( !sqlite3_close(db) )
Error("Sqlite could not close connection");
db = 0;
}