db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r531470 - /db/derby/code/branches/10.2/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java
Date Mon, 23 Apr 2007 14:08:07 GMT
Author: kahatlen
Date: Mon Apr 23 07:08:00 2007
New Revision: 531470

URL: http://svn.apache.org/viewvc?view=rev&rev=531470
Log:
DERBY-2551: Global Xid value garbled in syscs_diag.transaction_table

Merged fix from trunk (revision 531468).

Modified:
    db/derby/code/branches/10.2/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java

Modified: db/derby/code/branches/10.2/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.2/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java?view=diff&rev=531470&r1=531469&r2=531470
==============================================================================
--- db/derby/code/branches/10.2/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java
(original)
+++ db/derby/code/branches/10.2/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java
Mon Apr 23 07:08:00 2007
@@ -83,7 +83,11 @@
 			for (int i = 0; i < global_id.length; i++)
 		    {
 				mask = (global_id[i] & 0xFF);
-				globalhex += Integer.toHexString(mask);
+                if (mask < 16) {
+                    globalhex += "0" + Integer.toHexString(mask);
+                } else {
+                    globalhex += Integer.toHexString(mask);
+                }
 		    }
 	    }
 	
@@ -93,7 +97,11 @@
 			for (int i = 0; i < branch_id.length; i++)
 		    {
 				mask = (branch_id[i] & 0xFF);
-				branchhex += Integer.toHexString(mask);
+                if (mask < 16) {
+                    branchhex += "0" + Integer.toHexString(mask);
+                } else {
+                    branchhex += Integer.toHexString(mask);
+                }
 		    }
 	    }
 



Mime
View raw message