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:19:46 UTC

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

Author: kahatlen
Date: Tue Oct 23 01:19:46 2007
New Revision: 587417

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

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

Modified: db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java?rev=587417&r1=587416&r2=587417&view=diff
==============================================================================
--- db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java (original)
+++ db/derby/code/branches/10.3/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java Tue Oct 23 01:19:46 2007
@@ -96,9 +96,6 @@
 	*/
 	private short			sqlAllowed = -1;
 
-    // Counter used to create unique savepoint names.
-    private static long nextNameId = Long.MIN_VALUE;
-
 	/*
 	   constructor
 		@param tc transaction
@@ -108,7 +105,7 @@
 		super(lcc.getContextManager(), org.apache.derby.iapi.reference.ContextId.LANG_STATEMENT);
 		this.lcc = lcc;
 
-        internalSavePointName = createInternalSavepointName();
+		internalSavePointName = "ISSP" + hashCode();
 
 		if (SanityManager.DEBUG)
 		{
@@ -117,16 +114,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,