directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r942371 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
Date Sat, 08 May 2010 11:57:55 GMT
Author: elecharny
Date: Sat May  8 11:57:55 2010
New Revision: 942371

URL: http://svn.apache.org/viewvc?rev=942371&view=rev
Log:
One more optimization : if the DN is already normalized, no need to do it again.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java?rev=942371&r1=942370&r2=942371&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
Sat May  8 11:57:55 2010
@@ -188,7 +188,12 @@ public class NormalizationInterceptor ex
      */
     public EntryFilteringCursor search( NextInterceptor nextInterceptor, SearchOperationContext
opContext ) throws Exception
     {
-        opContext.getDn().normalize( schemaManager.getNormalizerMapping() );
+        DN dn = opContext.getDn();
+        
+        if ( !dn.isNormalized() )
+        {
+            dn.normalize( schemaManager.getNormalizerMapping() );
+        }
 
         ExprNode filter = opContext.getFilter();
         



Mime
View raw message