jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1547806 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore.java
Date Wed, 04 Dec 2013 14:35:31 GMT
Author: alexparvulescu
Date: Wed Dec  4 14:35:30 2013
New Revision: 1547806

URL: http://svn.apache.org/r1547806
Log:
OAK-1250 Guard against invalid/missing checkpoints
 - removed synchonized from checkpoint methods


Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore.java?rev=1547806&r1=1547805&r2=1547806&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore.java
Wed Dec  4 14:35:30 2013
@@ -186,7 +186,7 @@ public class SegmentNodeStore implements
     }
 
     @Override @Nonnull
-    public synchronized String checkpoint(long lifetime) {
+    public String checkpoint(long lifetime) {
         checkArgument(lifetime > 0);
         String name = UUID.randomUUID().toString();
 
@@ -221,7 +221,7 @@ public class SegmentNodeStore implements
     }
 
     @Override @CheckForNull
-    public synchronized NodeState retrieve(@Nonnull String checkpoint) {
+    public NodeState retrieve(@Nonnull String checkpoint) {
         NodeState cp = head.getChildNode(checkpoint).getChildNode(ROOT);
         if (cp.exists()) {
             return cp;



Mime
View raw message