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