froehlich 02/01/27 09:54:18
Modified: src/java/org/apache/cocoon/components/store
StoreJanitorImpl.java
Log:
added better debugging messages
Revision Changes Path
1.5 +3 -3
xml-cocoon2/src/java/org/apache/cocoon/components/store/StoreJanitorImpl.java
Index: StoreJanitorImpl.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/store/StoreJanitorImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StoreJanitorImpl.java 27 Jan 2002 16:49:03 -0000 1.4
+++ StoreJanitorImpl.java 27 Jan 2002 17:54:18 -0000 1.5
@@ -217,16 +217,16 @@
}
if (this.getIndex() < this.getStoreList().size()) {
if(this.getIndex() == -1) {
+ this.setIndex(0);
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("Freeing Store: " + this.getIndex());
}
- ((Store)this.getStoreList().get(0)).free();
- this.setIndex(0);
+ ((Store)this.getStoreList().get(this.getIndex())).free();
} else {
+ this.setIndex(this.getIndex() + 1);
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("Freeing Store: " + this.getIndex());
}
- this.setIndex(this.getIndex() + 1);
((Store)this.getStoreList().get(this.getIndex())).free();
}
} else {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]