Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 54052 invoked from network); 23 Apr 2007 14:02:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2007 14:02:55 -0000 Received: (qmail 65346 invoked by uid 500); 23 Apr 2007 14:03:02 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 65311 invoked by uid 500); 23 Apr 2007 14:03:02 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 65299 invoked by uid 99); 23 Apr 2007 14:03:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 07:03:02 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 07:02:54 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 54A6E1A9838; Mon, 23 Apr 2007 07:02:34 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r531468 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java Date: Mon, 23 Apr 2007 14:02:32 -0000 To: derby-commits@db.apache.org From: kahatlen@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070423140234.54A6E1A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kahatlen Date: Mon Apr 23 07:02:13 2007 New Revision: 531468 URL: http://svn.apache.org/viewvc?view=rev&rev=531468 Log: DERBY-2551: Global Xid value garbled in syscs_diag.transaction_table Fix contributed by Julius Stroffek. Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java?view=diff&rev=531468&r1=531467&r2=531468 ============================================================================== --- db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java (original) +++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/GlobalXact.java Mon Apr 23 07:02:13 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); + } } }