X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fpool.lisp;h=66cbaf76125d10b2a0ee600ae8044148635d3a44;hb=6c83b1d3ad63edfc36a5bb5aee451d1eacc0d555;hp=38d32cdd21a125c543bcbd4471b087c7cd4ffd3b;hpb=cb82710efa09d65dca65d8b8316c6f877129a22c;p=clsql.git 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)