directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r954974 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
Date Tue, 15 Jun 2010 17:23:41 GMT
Author: elecharny
Date: Tue Jun 15 17:23:41 2010
New Revision: 954974

URL: http://svn.apache.org/viewvc?rev=954974&view=rev
Log:
o Removed one more lookup

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java?rev=954974&r1=954973&r2=954974&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
Tue Jun 15 17:23:41 2010
@@ -316,8 +316,6 @@ public class ReferralInterceptor extends
      **/
     public void moveAndRename( NextInterceptor next, MoveAndRenameOperationContext moveAndRenameContext
) throws LdapException
     {
-        DN newName = moveAndRenameContext.getNewDn();
-
         // Check if the entry is a referral itself
         boolean isReferral = isReferral( moveAndRenameContext.getEntry() );
 
@@ -326,9 +324,7 @@ public class ReferralInterceptor extends
         if ( isReferral )
         {
             // Update the referralManager
-            LookupOperationContext lookupContext = new LookupOperationContext( moveAndRenameContext.getSession(),
newName );
-
-            Entry newEntry = nexus.lookup( lookupContext );
+            Entry newEntry = moveAndRenameContext.getModifiedEntry();
 
             referralManager.lockWrite();
 



Mime
View raw message