1
0
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:
Jiaqiang Xu 2016-09-03 12:05:11 +08:00
parent 6aa2c9d5c7
commit 2447b6e144

View File

@ -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);
}