directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r537361 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralLut.java
Date Sat, 12 May 2007 08:59:37 GMT
Author: elecharny
Date: Sat May 12 01:59:36 2007
New Revision: 537361

URL: http://svn.apache.org/viewvc?view=rev&rev=537361
Log:
Call the addNormalized(RDN) method which is much faster than
the add(RDN), as the RDN is not normalized again. 

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralLut.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralLut.java?view=diff&rev=537361&r1=537360&r2=537361
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralLut.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralLut.java
Sat May 12 01:59:36 2007
@@ -99,7 +99,7 @@
         
         for ( int ii = 0; ii < dn.size(); ii++ )
         {
-            farthest.add( dn.getRdn( ii ) );
+            farthest.addNormalized( dn.getRdn( ii ) );
 
             // do not return dn if it is the farthest referral
             if ( isReferral( farthest ) && ( farthest.size() != dn.size() ) )



Mime
View raw message