db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r517588 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/LockControl.java
Date Tue, 13 Mar 2007 08:33:41 GMT
Author: kahatlen
Date: Tue Mar 13 01:33:40 2007
New Revision: 517588

URL: http://svn.apache.org/viewvc?view=rev&rev=517588
Log:
DERBY-1704: Allow more concurrency in the lock manager

Simplified LockControl.popFrontWaiter().

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/LockControl.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/LockControl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/LockControl.java?view=diff&rev=517588&r1=517587&r2=517588
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/LockControl.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/LockControl.java
Tue Mar 13 01:33:40 2007
@@ -638,11 +638,7 @@
 	 * @return	The removed lock request
 	 */
 	private Object popFrontWaiter(List waiting, LockTable ls) {
-		// Maintain count of waiters
-		ls.oneLessWaiter();
-
-		// Remove and return the first lock request
-		return waiting.remove(0);
+		return removeWaiter(waiting, 0, ls);
 	}
 
 



Mime
View raw message