db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r587418 - /db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
Date Tue, 23 Oct 2007 08:21:08 GMT
Author: kahatlen
Date: Tue Oct 23 01:21:07 2007
New Revision: 587418

URL: http://svn.apache.org/viewvc?rev=587418&view=rev
Log:
Backed out fix for DERBY-3093.

Modified:
    db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java

Modified: db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java?rev=587418&r1=587417&r2=587418&view=diff
==============================================================================
--- db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
(original)
+++ db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
Tue Oct 23 01:21:07 2007
@@ -99,9 +99,6 @@
 	*/
 	private short			sqlAllowed = -1;
 
-    // Counter used to create unique savepoint names.
-    private static long nextNameId = Long.MIN_VALUE;
-
 	/*
 	   constructor
 		@param tc transaction
@@ -112,7 +109,7 @@
 		this.lcc = lcc;
 		this.tc = tc;
 
-        internalSavePointName = createInternalSavepointName();
+		internalSavePointName = "ISSP" + hashCode();
 
 		if (SanityManager.DEBUG)
 		{
@@ -121,16 +118,6 @@
 		}
 
 	}
-
-    /**
-     * Generate a unique name for this savepoint.
-     * This method should only be called from the constructor.
-     *
-     * @return the savepoint name.
-     */
-    private synchronized static String createInternalSavepointName() {
-        return "ISSP" + nextNameId++;
-    }
 
     /**
      * This is a TimerTask that is responsible for timing out statements,



Mime
View raw message