1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-16 15:18:58 +00:00

Fix SQLite "database is locked" problem.

Need to use shared cache mode to open db connections.
Also use "unlock_notify" API instead of timed retry.
This commit is contained in:
Jiaqiang Xu
2016-10-29 15:07:20 +08:00
parent 4b1fe6daef
commit 40c6706acc
3 changed files with 15 additions and 13 deletions

View File

@@ -196,6 +196,7 @@ db_conn_pool_get_connection (DBConnPool *pool, GError **error)
if (conn) {
conn->is_available = FALSE;
conn->pool = pool;
conn->conn_no = size;
g_ptr_array_add (pool->connections, conn);
}
}