You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by st...@apache.org on 2005/08/22 11:17:51 UTC

svn commit: r234457 - /incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/ItemState.java

Author: stefan
Date: Mon Aug 22 02:17:48 2005
New Revision: 234457

URL: http://svn.apache.org/viewcvs?rev=234457&view=rev
Log:
synchronzing MOD_COUNT increment

Modified:
    incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/ItemState.java

Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/ItemState.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/ItemState.java?rev=234457&r1=234456&r2=234457&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/ItemState.java (original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/ItemState.java Mon Aug 22 02:17:48 2005
@@ -167,8 +167,10 @@
     /**
      * Updates the modification count.
      */
-    synchronized void touch() {
-        modCount = LAST_MOD_COUNT++;
+    void touch() {
+        synchronized (ItemState.class) {
+            modCount = LAST_MOD_COUNT++;
+        }
     }
 
     /**