You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2007/10/23 10:21:08 UTC

svn commit: r587418 - /db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java

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,