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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user