jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r1328037 - /jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/store/DefaultRevisionStore.java
Date Thu, 19 Apr 2012 16:26:34 GMT
Author: dpfister
Date: Thu Apr 19 16:26:34 2012
New Revision: 1328037

URL: http://svn.apache.org/viewvc?rev=1328037&view=rev
Log:
GC for revisions
- wrong exit condition

Modified:
    jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/store/DefaultRevisionStore.java

Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/store/DefaultRevisionStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/store/DefaultRevisionStore.java?rev=1328037&r1=1328036&r2=1328037&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/store/DefaultRevisionStore.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/store/DefaultRevisionStore.java
Thu Apr 19 16:26:34 2012
@@ -432,7 +432,7 @@ public class DefaultRevisionStore extend
     private void markCommit(StoredCommit commit) 
             throws Exception {
         
-        if (gcpm.markCommit(commit.getId())) {
+        if (!gcpm.markCommit(commit.getId())) {
             return;
         }
         
@@ -442,7 +442,7 @@ public class DefaultRevisionStore extend
     private void markNode(StoredNode node) 
             throws Exception {
         
-        if (gcpm.markNode(node.getId())) {
+        if (!gcpm.markNode(node.getId())) {
             return;
         }
         Iterator<ChildNode> iter = node.getChildNodeEntries(0, -1);



Mime
View raw message