directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1611344 - /directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
Date Thu, 17 Jul 2014 12:48:00 GMT
Author: kayyagari
Date: Thu Jul 17 12:47:59 2014
New Revision: 1611344

URL: http://svn.apache.org/r1611344
Log:
return index count rather than Long.MAX_VALUE (DIRSERVER-1965)

Modified:
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java?rev=1611344&r1=1611343&r2=1611344&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
Thu Jul 17 12:47:59 2014
@@ -396,8 +396,8 @@ public class DefaultOptimizer<E> impleme
 
             if ( Strings.isEmpty( initial ) )
             {
-                // Not a (attr=ABC*) filter : full scan
-                return Long.MAX_VALUE;
+                // Not a (attr=ABC*) filter : full index scan
+                return idx.count();
             }
             else
             {



Mime
View raw message