Return-Path: X-Original-To: apmail-db-derby-commits-archive@www.apache.org Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4099E97F for ; Thu, 27 Dec 2012 23:05:12 +0000 (UTC) Received: (qmail 31439 invoked by uid 500); 27 Dec 2012 23:05:12 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 31368 invoked by uid 500); 27 Dec 2012 23:05:12 -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 31358 invoked by uid 99); 27 Dec 2012 23:05:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 23:05:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 23:05:09 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1BF6C23888EA; Thu, 27 Dec 2012 23:04:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1426360 - in /db/derby/code/trunk/java/engine/org/apache/derby: iapi/services/cache/CacheFactory.java impl/services/cache/Clock.java Date: Thu, 27 Dec 2012 23:04:48 -0000 To: derby-commits@db.apache.org From: kahatlen@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121227230449.1BF6C23888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kahatlen Date: Thu Dec 27 23:04:48 2012 New Revision: 1426360 URL: http://svn.apache.org/viewvc?rev=1426360&view=rev Log: DERBY-3275: Mismatch between comments and actual use of initialSize parameter in CacheFactory and Clock Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java?rev=1426360&r1=1426359&r2=1426360&view=diff ============================================================================== --- db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java (original) +++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/services/cache/CacheFactory.java Thu Dec 27 23:04:48 2012 @@ -32,7 +32,7 @@ public interface CacheFactory { @param holderFactory The factory for the objects that are to be cached. @param name The name of the cache - @param initialSize The number of initial holder objects that will be created + @param initialSize The initial capacity of the cache @param maximumSize The maximum number of objects the cache will hold */ Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java?rev=1426360&r1=1426359&r2=1426360&view=diff ============================================================================== --- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java (original) +++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/cache/Clock.java Thu Dec 27 23:04:48 2012 @@ -141,11 +141,10 @@ final class Clock implements CacheManage @param holderFactory the cacheable object class @param name the name of the cache - @param initialSize the initial number of cachable object this cache - holds. + @param initialSize the initial capacity of the cache @param maximumSize the maximum size of the cache. The cache may grow from initialSize to maximumSize if the cache policy notices that there - is not enough free buffers availiable. Once the cache hits maximumSize + are not enough free buffers available. Once the cache hits maximumSize it will not grow. If the cache is full, an exception will be thrown */