jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject svn commit: r1583603 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStore.java
Date Tue, 01 Apr 2014 10:43:55 GMT
Author: chetanm
Date: Tue Apr  1 10:43:55 2014
New Revision: 1583603

URL: http://svn.apache.org/r1583603
Log:
OAK-1655 - DataStoreBlobStore does not take into maxLastModifiedTime when fetching all chunks

If the maxLastModifiedTime <= 0then all files would be returned

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStore.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStore.java?rev=1583603&r1=1583602&r2=1583603&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStore.java
Tue Apr  1 10:43:55 2014
@@ -267,7 +267,8 @@ public class DataStoreBlobStore implemen
             public boolean apply(DataIdentifier input) {
                 try {
                     DataRecord dr = delegate.getRecord(input);
-                    if(dr != null && dr.getLastModified() < maxLastModifiedTime){
+                    if(dr != null && (maxLastModifiedTime <=0
+                            || dr.getLastModified() < maxLastModifiedTime)){
                         return true;
                     }
                 } catch (DataStoreException e) {



Mime
View raw message