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

Fix db connection pool bug.

This commit is contained in:
Jiaqiang Xu
2016-10-05 18:33:03 +08:00
parent d00e87b092
commit 312e152703

View File

@@ -194,7 +194,7 @@ db_conn_pool_get_connection (DBConnPool *pool, GError **error)
if (size < pool->max_connections) { if (size < pool->max_connections) {
conn = db_ops.get_db_connection (pool, error); conn = db_ops.get_db_connection (pool, error);
if (conn) { if (conn) {
conn->is_available = TRUE; conn->is_available = FALSE;
conn->pool = pool; conn->pool = pool;
g_ptr_array_add (pool->connections, conn); g_ptr_array_add (pool->connections, conn);
} }