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

Manik Surtani manik at jboss.org
Thu Jul 5 15:10:29 EDT 2007


  User: msurtani
  Date: 07/07/05 15:10:29

  Modified:    src/org/jboss/cache/interceptors  Tag:
                        Branch_JBossCache_1_4_0
                        OptimisticValidatorInterceptor.java
  Log:
  Fixed bug where newly created nodes don't have their versions incremented
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.25.2.17 +1 -1      JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: OptimisticValidatorInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/interceptors/OptimisticValidatorInterceptor.java,v
  retrieving revision 1.25.2.16
  retrieving revision 1.25.2.17
  diff -u -b -r1.25.2.16 -r1.25.2.17
  --- OptimisticValidatorInterceptor.java	20 Apr 2007 13:09:41 -0000	1.25.2.16
  +++ OptimisticValidatorInterceptor.java	5 Jul 2007 19:10:28 -0000	1.25.2.17
  @@ -228,7 +228,7 @@
                     updateVersion = cache.getLockParentForChildInsertRemove();
                 }
   
  -               if (wrappedNode.isDirty())
  +               if (wrappedNode.isDirty() || wrappedNode.isCreated())
                  {
                       cache.notifyNodeModify(wrappedNode.getFqn(), true);
   
  
  
  



More information about the jboss-cvs-commits mailing list