From: <th...@us...> - 2010-12-05 17:53:47
|
Revision: 1978 http://azsmrc.svn.sourceforge.net/azsmrc/?rev=1978&view=rev Author: the8472 Date: 2010-12-05 17:53:41 +0000 (Sun, 05 Dec 2010) Log Message: ----------- some small errors Modified Paths: -------------- mldht/trunk/DHTIndexer.jar mldht/trunk/lbms/plugins/mldht/indexer/db/PooledConnectionProvider.java Modified: mldht/trunk/DHTIndexer.jar =================================================================== (Binary files differ) Modified: mldht/trunk/lbms/plugins/mldht/indexer/db/PooledConnectionProvider.java =================================================================== --- mldht/trunk/lbms/plugins/mldht/indexer/db/PooledConnectionProvider.java 2010-12-05 17:46:12 UTC (rev 1977) +++ mldht/trunk/lbms/plugins/mldht/indexer/db/PooledConnectionProvider.java 2010-12-05 17:53:41 UTC (rev 1978) @@ -20,7 +20,7 @@ Properties connectConfig; Driver driver; String jdbcUrl; - ConcurrentLinkedQueue<Connection> connectionPool; + ConcurrentLinkedQueue<Connection> connectionPool = new ConcurrentLinkedQueue<Connection>(); ScheduledFuture<?> poolCleaner; public void close() throws HibernateException { @@ -85,7 +85,7 @@ Connection c = connectionPool.poll(); if(c == null) { - driver.connect(jdbcUrl, connectConfig); + c = driver.connect(jdbcUrl, connectConfig); c.setAutoCommit(false); c.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |