jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1571195 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/AggregateIndex.java
Date Mon, 24 Feb 2014 09:20:09 GMT
Author: alexparvulescu
Date: Mon Feb 24 09:20:08 2014
New Revision: 1571195

URL: http://svn.apache.org/r1571195
Log:
OAK-1462 Aggregate Index isn't usable in an osgi environment
 - temp tweak of the cost output to make sure this index gets picked instead of the wrapped
one


Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/AggregateIndex.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/AggregateIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/AggregateIndex.java?rev=1571195&r1=1571194&r2=1571195&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/AggregateIndex.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/AggregateIndex.java
Mon Feb 24 09:20:08 2014
@@ -58,7 +58,7 @@ public class AggregateIndex implements F
         if (baseIndex == null) {
             return Double.POSITIVE_INFINITY;
         }
-        return baseIndex.getCost(filter, rootState);
+        return baseIndex.getCost(filter, rootState) - 0.05;
     }
 
     @Override



Mime
View raw message