db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r547408 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Deadlock.java
Date Thu, 14 Jun 2007 21:16:52 GMT
Author: kahatlen
Date: Thu Jun 14 14:16:51 2007
New Revision: 547408

URL: http://svn.apache.org/viewvc?view=rev&rev=547408
Log:
DERBY-2817: Error messages for deadlocks contain less information than
in 10.2

Print the owner of a compatibility space instead of the space object.

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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Deadlock.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Deadlock.java?view=diff&rev=547408&r1=547407&r2=547408
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Deadlock.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Deadlock.java Thu
Jun 14 14:16:51 2007
@@ -294,7 +294,7 @@
 						Lock gl = (Lock) grants.get(j);
 
 						sb.append("{");
-						sb.append(gl.getCompatabilitySpace());
+						sb.append(gl.getCompatabilitySpace().getOwner());
 						sb.append(", ");
 						sb.append(gl.getQualifier());
 						sb.append("} ");
@@ -325,7 +325,8 @@
 			addInfo(sb, ", ", attributes.get(VirtualLockTable.LOCKNAME));
 			sb.append('\n');
 
-			String xid = space.toString();
+			String xid =
+				String.valueOf(lock.getCompatabilitySpace().getOwner());
 			if (i == 0)
 				victimXID = xid;
 



Mime
View raw message