directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r537360 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralService.java
Date Sat, 12 May 2007 08:57:47 GMT
Author: elecharny
Date: Sat May 12 01:57:46 2007
New Revision: 537360

URL: http://svn.apache.org/viewvc?view=rev&rev=537360
Log:
The isReferral() method has been modified so that the DN is 
not normalized again if it has already been normalized before. This is a
major speedup.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralService.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralService.java?view=diff&rev=537360&r1=537359&r2=537360
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralService.java
Sat May 12 01:57:46 2007
@@ -1108,6 +1108,6 @@
      */
     public boolean isReferral( LdapDN name ) throws NamingException
     {
-        return lut.isReferral( LdapDN.normalize( name, attrRegistry.getNormalizerMapping()
) );
+  		return lut.isReferral( name.isNormalized() ? name :  LdapDN.normalize( name, attrRegistry.getNormalizerMapping()
) );
     }
 }



Mime
View raw message