Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make conn pool LIFO in order to exercise connections

  • Loading branch information...
commit 6c1aeea7189ed4de3aed2bff21e63781bd56db8b 1 parent 7da5479
Ed Ceaser authored
View
2  project/build.properties
@@ -3,6 +3,6 @@
project.organization=com.twitter
project.name=querulous
sbt.version=0.7.4
-project.version=1.2.0
+project.version=1.2.1
build.scala.versions=2.7.7
project.initialize=false
View
2  src/main/scala/com/twitter/querulous/database/ApachePoolingDatabase.scala
@@ -56,6 +56,8 @@ class ApachePoolingDatabase(
config.testOnBorrow = checkConnectionHealthOnReservation
config.minEvictableIdleTimeMillis = evictConnectionIfIdleFor.inMillis
+ config.lifo = false
+
private val connectionPool = new GenericObjectPool(null, config)
private val connectionFactory = new DriverManagerConnectionFactory(url(dbhosts, dbname, urlOptions), username, password)
private val poolableConnectionFactory = new PoolableConnectionFactory(
Please sign in to comment.
Something went wrong with that request. Please try again.