jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject svn commit: r1581311 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Checkpoints.java
Date Tue, 25 Mar 2014 13:11:23 GMT
Author: chetanm
Date: Tue Mar 25 13:11:23 2014
New Revision: 1581311

URL: http://svn.apache.org/r1581311
Log:
OAK-1586 - Implement checkpoint support in DocumentNodeStore

Fixing the collection name to settings. This should also fix the build failure

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Checkpoints.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Checkpoints.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Checkpoints.java?rev=1581311&r1=1581310&r2=1581311&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Checkpoints.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/Checkpoints.java
Tue Mar 25 13:11:23 2014
@@ -27,7 +27,6 @@ import javax.annotation.CheckForNull;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import static org.apache.jackrabbit.oak.plugins.document.Collection.NODES;
 
 /**
  * Checkpoints provide details around which revision are to be kept. Currently these
@@ -104,7 +103,7 @@ class Checkpoints {
     }
 
     private void createIfNotExist() {
-        if (store.find(NODES, ID) == null) {
+        if (store.find(Collection.SETTINGS, ID) == null) {
             UpdateOp updateOp = new UpdateOp(ID, true);
             updateOp.set(Document.ID, ID);
             store.createOrUpdate(Collection.SETTINGS, updateOp);



Mime
View raw message