jtaylor 02/05/14 12:40:24
Modified: src/java/org/apache/jcs/auxiliary/disk
AbstractDiskCache.java
Log:
One of the fixes in my last patch was redundant: No need to set spoolable
to false because the async handler checks to see if the element is still
in purgatory first.
Revision Changes Path
1.6 +2 -11
jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/disk/AbstractDiskCache.java
Index: AbstractDiskCache.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/disk/AbstractDiskCache.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- AbstractDiskCache.java 14 May 2002 19:28:12 -0000 1.5
+++ AbstractDiskCache.java 14 May 2002 19:40:24 -0000 1.6
@@ -87,7 +87,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Aaron Smuts</a>
* @author <a href="mailto:[EMAIL PROTECTED]">James Taylor</a>
- * @version $Id: AbstractDiskCache.java,v 1.5 2002/05/14 19:28:12 jtaylor Exp $
+ * @version $Id: AbstractDiskCache.java,v 1.6 2002/05/14 19:40:24 jtaylor Exp $
*/
public abstract class AbstractDiskCache implements AuxiliaryCache, Serializable
{
@@ -251,21 +251,12 @@
/**
* @see org.apache.jcs.engine.behavior.ICache#remove
- *
- * FIXME: This now updates the 'spoolable' property of the purgatory element
- * for the given key to 'false', however to be really safe we should
- * pause the event queue while in this method.
*/
public final boolean remove( Serializable key )
{
// Remove element from purgatory if it is there
- PurgatoryElement pe = ( PurgatoryElement ) purgatory.remove( key );
-
- if ( pe != null )
- {
- pe.setSpoolable( false );
- }
+ purgatory.remove( key );
// Remove from persistent store immediately
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>