Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 2019 invoked from network); 3 Apr 2008 20:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 20:53:56 -0000 Received: (qmail 83841 invoked by uid 500); 3 Apr 2008 20:53:55 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83611 invoked by uid 500); 3 Apr 2008 20:53:55 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 83602 invoked by uid 99); 3 Apr 2008 20:53:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 13:53:55 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 20:53:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7F17D234C0BB for ; Thu, 3 Apr 2008 13:51:24 -0700 (PDT) Message-ID: <663231496.1207255884519.JavaMail.jira@brutus> Date: Thu, 3 Apr 2008 13:51:24 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3589) AllocPage.createPage() doesn't initialize minimumRecordSize correctly In-Reply-To: <172922963.1207142964617.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-3589: -------------------------------------- Derby Info: [Patch Available] Derbyall and suites.All ran cleanly. > AllocPage.createPage() doesn't initialize minimumRecordSize correctly > --------------------------------------------------------------------- > > Key: DERBY-3589 > URL: https://issues.apache.org/jira/browse/DERBY-3589 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.3.1.4, 10.4.1.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Attachments: d3589-1a.diff, d3589-1a.stat > > > AllocPage.createPage() will initialize minimumRecordSize to the same > value as borrowedSpace. See this code taken from AllocPage.java: > ------------------- > protected void createPage(PageKey newIdentity, int[] args) > throws StandardException > { > super.createPage(newIdentity, args); > // args[0] is the format id > // args[1] is whether to sync the page to disk or not > // args[2] is the pagesize (used by StoredPage) > // args[3] is the spareSize (used by StoredPage) > // args[4] is the number of bytes to reserve for container header > // args[5] is the minimumRecordSize > // NOTE: the arg list here must match the one in FileContainer > int pageSize = args[2]; > int minimumRecordSize = args[5]; > borrowedSpace = args[4]; > ------------------- > Here it correctly takes args[5] and puts into the local variable > minimumRecordSize. However, that variable hides a field with the same > name, and that field is set to args[4] in the call to > super.createPage() at the first line in the method. The local variable > is never used. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.