From: Nathan Bird Date: Wed, 3 Mar 2010 19:46:22 +0000 (-0500) Subject: Check for *db-pool-max-free-connections* being nil, if so don't enforce a max. X-Git-Tag: v5.0.5~5 X-Git-Url: http://git.kpe.io/?p=clsql.git;a=commitdiff_plain;h=06f8ade4128c181776b8018fc73b0b9e1f383a25 Check for *db-pool-max-free-connections* being nil, if so don't enforce a max. --- diff --git a/sql/pool.lisp b/sql/pool.lisp index 38d32cd..66cbaf7 100644 --- a/sql/pool.lisp +++ b/sql/pool.lisp @@ -85,8 +85,9 @@ chance to do cleanup." ;;not the list). Multiple threads getting to this test at the ;;same time might result in the free-connections getting ;;longer... meh. - ((>= (length (free-connections pool)) - *db-pool-max-free-connections*) + ((and *db-pool-max-free-connections* + (>= (length (free-connections pool)) + *db-pool-max-free-connections*)) (%pool-force-disconnect database) (with-process-lock ((conn-pool-lock pool) "Remove extra Conn") (setf (all-connections pool)