Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@www.apache.org Received: (qmail 33405 invoked from network); 18 Aug 2004 13:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Aug 2004 13:04:20 -0000 Received: (qmail 74862 invoked by uid 500); 18 Aug 2004 13:04:20 -0000 Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@jakarta.apache.org Received: (qmail 74822 invoked by uid 500); 18 Aug 2004 13:04:19 -0000 Mailing-List: contact turbine-jcs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Developers List" Reply-To: "Turbine JCS Developers List" Delivered-To: mailing list turbine-jcs-dev@jakarta.apache.org Received: (qmail 74807 invoked by uid 99); 18 Aug 2004 13:04:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [165.98.147.95] (HELO ags01.agsoftware.dnsalias.com) (165.98.147.95) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 18 Aug 2004 06:04:19 -0700 Received: from ags01.agsoftware.dnsalias.com (localhost.localdomain [127.0.0.1]) by ags01.agsoftware.dnsalias.com (8.12.11/8.12.10) with ESMTP id i7ID4GWB018541 for ; Wed, 18 Aug 2004 07:04:16 -0600 Received: (from apache@localhost) by ags01.agsoftware.dnsalias.com (8.12.11/8.12.11/Submit) id i7ID4EgT018540; Wed, 18 Aug 2004 07:04:14 -0600 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to agallardo@agssa.net using -f Received: from 10.0.0.5 (SquirrelMail authenticated user agallardo); by ags01.agsoftware.dnsalias.com with HTTP; Wed, 18 Aug 2004 07:04:14 -0600 (CST) Message-ID: <40038.10.0.0.5.1092834254.squirrel@10.0.0.5> Date: Wed, 18 Aug 2004 07:04:14 -0600 (CST) Subject: [PATCH] - Rename Optomizing -> Optimizing (variable + log output) From: "Antonio Gallardo" To: turbine-jcs-dev@jakarta.apache.org User-Agent: SquirrelMail/1.4.3a-1 X-Mailer: SquirrelMail/1.4.3a-1 MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20040818070414_15684" X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_20040818070414_15684 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi : In IndexedDiskCache.java there is the word Optomizing. I think the correct word is Optimizing. Attached is the patch to fix that. Best Regards, Antonio Gallardo ------=_20040818070414_15684 Content-Type: text/plain; name="patch.txt" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="patch.txt" Index: IndexedDiskCache.java =================================================================== RCS file: /home/cvspublic/jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java,v retrieving revision 1.15 diff -u -r1.15 IndexedDiskCache.java --- IndexedDiskCache.java 22 Jul 2004 13:17:49 -0000 1.15 +++ IndexedDiskCache.java 18 Aug 2004 13:01:02 -0000 @@ -67,7 +67,7 @@ boolean doRecycle = true; // are we currenlty optimizing the files - boolean isOptomizing = false; + boolean isOptimizing = false; // list where puts made during optimization are made, may need a removeList too private LinkedList optimizingPutList = new LinkedList(); @@ -411,7 +411,7 @@ } dataFile.write(data, ded.pos); - if (this.isOptomizing) + if (this.isOptimizing) { optimizingPutList.addLast(ce.getKey()); if (log.isDebugEnabled()) @@ -570,7 +570,7 @@ { optCnt++; - if (!this.isOptomizing && optCnt == this.cattr.getOptimizeAtRemoveCount()) + if (!this.isOptimizing && optCnt == this.cattr.getOptimizeAtRemoveCount()) { doOptimizeRealTime(); if (log.isInfoEnabled()) @@ -864,9 +864,9 @@ */ public synchronized void doOptimizeRealTime() { - if (!this.isOptomizing) + if (!this.isOptimizing) { - this.isOptomizing = true; + this.isOptimizing = true; Runnable optR = new Runnable() { public void run() @@ -937,7 +937,7 @@ //dataFileTemp.reset(); // make sure flag is set to true - isOptomizing = true; + isOptimizing = true; int len = keys.length; //while ( itr.hasNext() ) @@ -1005,7 +1005,7 @@ log.error("Failure Optimizing RealTime, cacheName: " + cacheName, e); } optCnt = 0; - isOptomizing = false; + isOptimizing = false; long end = System.currentTimeMillis(); long time = end - start; @@ -1035,7 +1035,7 @@ if (log.isInfoEnabled()) { - log.info("Optomizing file keyHash.size()=" + keyHash.size()); + log.info("Optimizing file keyHash.size()=" + keyHash.size()); } //Iterator itr = keyHash.keySet().iterator(); ------=_20040818070414_15684 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org ------=_20040818070414_15684--