directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r947276 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Date Sat, 22 May 2010 10:13:11 GMT
Author: kayyagari
Date: Sat May 22 10:13:11 2010
New Revision: 947276

URL: http://svn.apache.org/viewvc?rev=947276&view=rev
Log:
o fixed serving the same search results to a syncrepl consumer twice by adding 'else'

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java?rev=947276&r1=947275&r2=947276&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Sat May 22 10:13:11 2010
@@ -176,14 +176,14 @@ public class SearchHandler extends LdapR
     {
         LOG.debug( "Handling single reply request: {}", req );
         
-        // check firt for the syncrepl search request control
+        // check first for the syncrepl search request control
         if ( req.getControls().containsKey( SyncRequestValueControl.CONTROL_OID ) )
         {
             handleSyncreplSearch( session, req );
         }
-        // First, if we have the ManageDSAIt control, go directly
+        // if we have the ManageDSAIt control, go directly
         // to the handling without pre-processing the request
-        if ( req.getControls().containsKey( ManageDsaITControl.CONTROL_OID ) )
+        else if ( req.getControls().containsKey( ManageDsaITControl.CONTROL_OID ) )
         {
             // If the ManageDsaIT control is present, we will
             // consider that the user wants to get entry which



Mime
View raw message