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 as...@apache.org on 2004/07/13 04:51:13 UTC

cvs commit: jakarta-turbine-jcs/src/java/org/apache/jcs/engine/control CompositeCache.java

asmuts      2004/07/12 19:51:13

  Modified:    src/java/org/apache/jcs/engine/control CompositeCache.java
  Log:
  Fixed shrinker shutdown problem.  memCache.dispose() is now called on shutdown.
  
  Revision  Changes    Path
  1.14      +10 -1     jakarta-turbine-jcs/src/java/org/apache/jcs/engine/control/CompositeCache.java
  
  Index: CompositeCache.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-jcs/src/java/org/apache/jcs/engine/control/CompositeCache.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- CompositeCache.java	12 Jun 2004 02:34:13 -0000	1.13
  +++ CompositeCache.java	13 Jul 2004 02:51:13 -0000	1.14
  @@ -880,6 +880,15 @@
               {
                   log.error( "Failure disposing of aux", ex );
               }
  +
  +          try {
  +            memCache.dispose();
  +          }
  +          catch ( IOException ex )
  +          {
  +              log.error( "Failure disposing of memCache", ex );
  +          }
  +
           }
   
           log.warn( "Called close for " + cacheName );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org