directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r942287 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Date Sat, 08 May 2010 00:40:07 GMT
Author: elecharny
Date: Sat May  8 00:40:07 2010
New Revision: 942287

URL: http://svn.apache.org/viewvc?rev=942287&view=rev
Log:
Avoid a useless DN normalization when it's already done

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=942287&r1=942286&r2=942287&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Sat May  8 00:40:07 2010
@@ -872,7 +872,11 @@ public class DefaultPartitionNexus  exte
             throw new LdapNoSuchObjectException();
         }
     
-        base.normalize( schemaManager.getNormalizerMapping() );
+        if ( !base.isNormalized() )
+        {
+            base.normalize( schemaManager.getNormalizerMapping() );
+        }
+        
         Partition backend = getPartition( base );
         return backend.search( opContext );
     }



Mime
View raw message