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

Manik Surtani msurtani at jboss.com
Wed Dec 13 11:01:47 EST 2006


  User: msurtani
  Date: 06/12/13 11:01:47

  Modified:    src/org/jboss/cache/interceptors  Tag:
                        Branch_JBossCache_1_4_0
                        PessimisticLockInterceptor.java
  Log:
  optimisations on casting nodes.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.20.2.7  +3 -2      JBossCache/src/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PessimisticLockInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/PessimisticLockInterceptor.java,v
  retrieving revision 1.20.2.6
  retrieving revision 1.20.2.7
  diff -u -b -r1.20.2.6 -r1.20.2.7
  --- PessimisticLockInterceptor.java	11 Dec 2006 18:00:48 -0000	1.20.2.6
  +++ PessimisticLockInterceptor.java	13 Dec 2006 16:01:47 -0000	1.20.2.7
  @@ -10,6 +10,7 @@
   import org.jboss.cache.Fqn;
   import org.jboss.cache.GlobalTransaction;
   import org.jboss.cache.InvocationContext;
  +import org.jboss.cache.Node;
   import org.jboss.cache.TransactionEntry;
   import org.jboss.cache.TransactionTable;
   import org.jboss.cache.TreeCache;
  @@ -36,7 +37,7 @@
    * current method and unlock when the method returns.
    *
    * @author Bela Ban
  - * @version $Id: PessimisticLockInterceptor.java,v 1.20.2.6 2006/12/11 18:00:48 msurtani Exp $
  + * @version $Id: PessimisticLockInterceptor.java,v 1.20.2.7 2006/12/13 16:01:47 msurtani Exp $
    */
   public class PessimisticLockInterceptor extends Interceptor
   {
  @@ -318,7 +319,7 @@
   
      private void reverseRemove(DataNode n)
      {
  -      cache.scrubRemoveMarker(n, false);
  +      cache.scrubRemoveMarker((Node) n, false);
      }
   
      private boolean writeLockNeeded(int lock_type, int currentNodeIndex, int treeNodeSize, boolean isRemoveOperation, boolean createIfNotExists, Fqn targetFqn, Fqn currentFqn)
  
  
  



More information about the jboss-cvs-commits mailing list