directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r940244 - /directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
Date Sun, 02 May 2010 15:09:12 GMT
Author: seelmann
Date: Sun May  2 15:09:12 2010
New Revision: 940244

URL: http://svn.apache.org/viewvc?rev=940244&view=rev
Log:
use simpler way to get count for system indices

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

Modified: directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java?rev=940244&r1=940243&r2=940244&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
(original)
+++ directory/apacheds/trunk/xdbm-search/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultOptimizer.java
Sun May  2 15:09:12 2010
@@ -354,9 +354,8 @@ public class DefaultOptimizer<E, ID exte
         else if ( db.hasSystemIndexOn( node.getAttribute() ) )
         {
             // the system indices (objectClass, entryUUID, entryCSN) are maintained for
-            // each entry, so we could just return the index count
-            Index<?, E, ID> idx = db.getSystemIndex( node.getAttribute() );
-            return idx.count();
+            // each entry, so we could just return the database count
+            return db.count();
         }
 
         return Long.MAX_VALUE;



Mime
View raw message