[jboss-cvs] JBossCache/src/org/jboss/cache/interceptors ...

Manik Surtani msurtani at jboss.com
Thu Jan 4 11:46:44 EST 2007


  User: msurtani
  Date: 07/01/04 11:46:44

  Modified:    src/org/jboss/cache/interceptors  EvictionInterceptor.java
  Log:
  Fixed poor initialisation of eviction regions
  
  Revision  Changes    Path
  1.12      +3 -3      JBossCache/src/org/jboss/cache/interceptors/EvictionInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EvictionInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/EvictionInterceptor.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- EvictionInterceptor.java	30 Dec 2006 19:48:46 -0000	1.11
  +++ EvictionInterceptor.java	4 Jan 2007 16:46:44 -0000	1.12
  @@ -27,7 +27,7 @@
    * This interceptor is used to handle eviction events.
    *
    * @author Daniel Huang
  - * @version $Revision: 1.11 $
  + * @version $Revision: 1.12 $
    */
   public class EvictionInterceptor extends Interceptor
   {
  @@ -134,8 +134,8 @@
   
      protected boolean canIgnoreEvent(Fqn fqn, NodeEventType type)
      {
  -      Region r = regionManager.getRegion(fqn, false);
  -      if (r == null) return true; // should never happen, we should at least get the default region.
  +      Region r = regionManager.getRegion(fqn, Region.Type.EVICTION, false);
  +      if (r == null) return true;// should never happen, we should at least get the default region.
         return r.getEvictionPolicy().canIgnoreEvent(fqn, type);
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list