jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1526192 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk: MemoryDocumentStore.java MongoDocumentStore.java
Date Wed, 25 Sep 2013 14:37:06 GMT
Author: mreutegg
Date: Wed Sep 25 14:37:05 2013
New Revision: 1526192

URL: http://svn.apache.org/r1526192
Log:
OAK-1043: DocumentStore.find() includes fromKey

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MemoryDocumentStore.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoDocumentStore.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MemoryDocumentStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MemoryDocumentStore.java?rev=1526192&r1=1526191&r2=1526192&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MemoryDocumentStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MemoryDocumentStore.java
Wed Sep 25 14:37:05 2013
@@ -102,7 +102,7 @@ public class MemoryDocumentStore impleme
         lock.lock();
         try {
             ConcurrentSkipListMap<String, T> map = getMap(collection);
-            ConcurrentNavigableMap<String, T> sub = map.subMap(fromKey, toKey);
+            ConcurrentNavigableMap<String, T> sub = map.subMap(fromKey + "\0", toKey);
             ArrayList<T> list = new ArrayList<T>();
             for (T doc : sub.values()) {
                 if (indexedProperty != null) {

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoDocumentStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoDocumentStore.java?rev=1526192&r1=1526191&r2=1526192&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoDocumentStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoDocumentStore.java
Wed Sep 25 14:37:05 2013
@@ -219,7 +219,7 @@ public class MongoDocumentStore implemen
         log("query", fromKey, toKey, limit);
         DBCollection dbCollection = getDBCollection(collection);
         QueryBuilder queryBuilder = QueryBuilder.start(Document.ID);
-        queryBuilder.greaterThanEquals(fromKey);
+        queryBuilder.greaterThan(fromKey);
         queryBuilder.lessThan(toKey);
         if (indexedProperty != null) {
             queryBuilder.and(indexedProperty);



Mime
View raw message