directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r577375 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Date Wed, 19 Sep 2007 17:00:00 GMT
Author: elecharny
Date: Wed Sep 19 09:59:58 2007
New Revision: 577375

URL: http://svn.apache.org/viewvc?rev=577375&view=rev
Log:
Added a speedup to avoid a DN normalization to be done if not necessary

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java?rev=577375&r1=577374&r2=577375&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
Wed Sep 19 09:59:58 2007
@@ -511,9 +511,11 @@
         // to RFC 2251, chap. 4.5.1. Basically, all unknown attributes are removed
         // from the list
         filterAttributesToReturn( searchCtls );
+        
+        String baseNormForm = ( base.isNormalized() ? base.getNormName() : base.toNormName()
);
 
         // Deal with the normal case : searching for a normal value (not subSchemaSubEntry
-        if ( !subschemaSubentryDnNorm.equals( base.toNormName() ) )
+        if ( !subschemaSubentryDnNorm.equals( baseNormForm ) )
         {
             NamingEnumeration<SearchResult> result = nextInterceptor.search( opContext
);
             



Mime
View raw message