jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Travis Savo <ts...@IFILM.com>
Subject removeAll with remote cache generates exponential events patch
Date Thu, 13 May 2004 23:48:43 GMT
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


Mime
View raw message