mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-02 15:48:06 +00:00
Fix db connection pool bug.
This commit is contained in:
parent
6aa2c9d5c7
commit
2447b6e144
@ -194,7 +194,7 @@ db_conn_pool_get_connection (DBConnPool *pool, GError **error)
|
||||
if (size < pool->max_connections) {
|
||||
conn = db_ops.get_db_connection (pool, error);
|
||||
if (conn) {
|
||||
conn->is_available = TRUE;
|
||||
conn->is_available = FALSE;
|
||||
conn->pool = pool;
|
||||
g_ptr_array_add (pool->connections, conn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user