mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
fix(MainDb): disable db lock for Android
This commit is contained in:
parent
94ff056468
commit
4b5e950d01
1 changed files with 5 additions and 0 deletions
|
|
@ -1364,6 +1364,11 @@ void MainDb::init () {
|
|||
return sanitized;
|
||||
};
|
||||
|
||||
// Disable locking. (Issue on Android on crash.)
|
||||
// See: https://stackoverflow.com/questions/17348480/how-do-i-prevent-sqlite-database-locks
|
||||
if (backend == Sqlite3)
|
||||
*session << "PRAGMA read_uncommitted = ON";
|
||||
|
||||
// TODO: Migrate all statements in statements.cpp.
|
||||
*session <<
|
||||
"CREATE TABLE IF NOT EXISTS sip_address ("
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue