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
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();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]