jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1783519 - /jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
Date Sat, 18 Feb 2017 11:35:51 GMT
Author: fschumacher
Date: Sat Feb 18 11:35:51 2017
New Revision: 1783519

URL: http://svn.apache.org/viewvc?rev=1783519&view=rev
Log:
Rename local variable, as it hides field of same name.

Modified:
    jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java

Modified: jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java?rev=1783519&r1=1783518&r2=1783519&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
(original)
+++ jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
Sat Feb 18 11:35:51 2017
@@ -290,16 +290,16 @@ public class DataSourceElement extends A
             }
 
             conn=dsc.getConnection();
-            int transactionIsolation = DataSourceElementBeanInfo.getTransactionIsolationMode(getTransactionIsolation());
-            if (transactionIsolation >= 0 && conn.getTransactionIsolation() !=
transactionIsolation) {
+            int isolation = DataSourceElementBeanInfo.getTransactionIsolationMode(getTransactionIsolation());
+            if (isolation >= 0 && conn.getTransactionIsolation() != isolation)
{
                 try {
                     // make sure setting the new isolation mode is done in an auto committed
transaction
-                    conn.setTransactionIsolation(transactionIsolation);
+                    conn.setTransactionIsolation(isolation);
                     log.debug("Setting transaction isolation: {}@{}",
-                            transactionIsolation, System.identityHashCode(dsc));
+                            isolation, System.identityHashCode(dsc));
                 } catch (SQLException ex) {
                     log.error("Could not set transaction isolation: {}@{}", 
-                            transactionIsolation, System.identityHashCode(dsc));
+                            isolation, System.identityHashCode(dsc));
                 }   
             }
 



Mime
View raw message