db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r547640 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Timeout.java
Date Fri, 15 Jun 2007 11:40:32 GMT
Author: kahatlen
Date: Fri Jun 15 04:40:32 2007
New Revision: 547640

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

Fixed printing of XID in lock table dumps on wait timeout.

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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Timeout.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Timeout.java?view=diff&rev=547640&r1=547639&r2=547640
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Timeout.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/locks/Timeout.java Fri
Jun 15 04:40:32 2007
@@ -320,7 +320,9 @@
         }
         
         attributes.put( VirtualLockTable.LOCKOBJ, currentLock );
-        attributes.put( VirtualLockTable.XACTID, currentLock.getCompatabilitySpace().toString()
);
+        attributes.put( VirtualLockTable.XACTID,
+                        String.valueOf(
+                            currentLock.getCompatabilitySpace().getOwner()));
         attributes.put( VirtualLockTable.LOCKMODE, lock_type.toString() );
         attributes.put( VirtualLockTable.LOCKCOUNT, Integer.toString( currentLock.getCount()
) );
         attributes.put( VirtualLockTable.STATE, (currentLock.getCount() != 0 ) ? "GRANT"
: "WAIT" );



Mime
View raw message