jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meteata...@apache.org
Subject svn commit: r1436367 - /jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java
Date Mon, 21 Jan 2013 14:29:20 GMT
Author: meteatamel
Date: Mon Jan 21 14:29:20 2013
New Revision: 1436367

URL: http://svn.apache.org/viewvc?rev=1436367&view=rev
Log:
OAK-565 - CommitCommand readExistingNodes/mergeNodes called unnecessarily

Minor change to the fix

Modified:
    jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java

Modified: jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java?rev=1436367&r1=1436366&r2=1436367&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/action/FetchHeadRevisionIdAction.java
Mon Jan 21 14:29:20 2013
@@ -72,6 +72,6 @@ public class FetchHeadRevisionIdAction e
         DBObject fields = new BasicDBObject(MongoCommit.KEY_REVISION_ID, 1);
         DBObject orderBy = new BasicDBObject(MongoCommit.KEY_REVISION_ID, -1);
         MongoCommit commit = (MongoCommit)collection.findOne(query, fields, orderBy);
-        return commit != null? commit.getRevisionId() : 0L;
+        return commit != null? commit.getRevisionId() : headRevisionId;
     }
 }



Mime
View raw message