commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r814320 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java
Date Sun, 13 Sep 2009 14:31:43 GMT
Author: psteitz
Date: Sun Sep 13 14:31:42 2009
New Revision: 814320

URL: http://svn.apache.org/viewvc?rev=814320&view=rev
Log:
Made unprotected flag volatile.

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java?rev=814320&r1=814319&r2=814320&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/cpdsadapter/DriverAdapterCPDS.java
Sun Sep 13 14:31:42 2009
@@ -116,7 +116,8 @@
     private int _minEvictableIdleTimeMillis = -1;
     private int _maxPreparedStatements = -1;
 
-    private boolean getConnectionCalled = false;
+    /** Whether or not getConnection has been called */
+    private volatile boolean getConnectionCalled = false;
 
     static {
         // Attempt to prevent deadlocks - see DBCP - 272



Mime
View raw message