jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r234457 - /incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/state/ItemState.java
Date Mon, 22 Aug 2005 09:17:51 GMT
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++;
+        }
     }
 
     /**



Mime
View raw message