You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by Travis Savo <ts...@IFILM.com> on 2004/05/14 01:48:43 UTC
removeAll with remote cache generates exponential events patch
This patch fixes a bug with RemoteCache and removeAll which would cause a
self-feeding event storm of removeAll's on a region.
Hope it helps.
-Travis Savo
Index: RemoteCacheListener.java
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-jcs/src/java/org/apache/jcs/auxiliary/remote
/RemoteCacheListener.java,v
retrieving revision 1.9
diff -u -r1.9 RemoteCacheListener.java
--- RemoteCacheListener.java 15 Apr 2004 19:22:47 -0000 1.9
+++ RemoteCacheListener.java 13 May 2004 23:40:55 -0000
@@ -29,7 +29,6 @@
import org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheConstants;
import org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheListener;
-import org.apache.jcs.engine.behavior.ICache;
import org.apache.jcs.engine.behavior.ICacheElement;
import org.apache.jcs.engine.control.CompositeCache;
@@ -256,8 +255,8 @@
log.debug( "handleRemoveAll> cacheName=" + cacheName );
}
getCacheManager();
- ICache cache = cacheMgr.getCache( cacheName );
- cache.removeAll();
+ CompositeCache cache = cacheMgr.getCache( cacheName );
+ cache.localRemoveAll();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org