Skip to content

Commit 2447b6e

Browse files
committed
Fix db connection pool bug.
1 parent 6aa2c9d commit 2447b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/db-wrapper/db-wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ db_conn_pool_get_connection (DBConnPool *pool, GError **error)
194194
if (size < pool->max_connections) {
195195
conn = db_ops.get_db_connection (pool, error);
196196
if (conn) {
197-
conn->is_available = TRUE;
197+
conn->is_available = FALSE;
198198
conn->pool = pool;
199199
g_ptr_array_add (pool->connections, conn);
200200
}

0 commit comments

Comments
 (0)