directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r797292 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Date Fri, 24 Jul 2009 01:01:01 GMT
Author: elecharny
Date: Fri Jul 24 01:01:01 2009
New Revision: 797292

URL: http://svn.apache.org/viewvc?rev=797292&view=rev
Log:
Added the handling of the AbandonRequest for the search operation (fix for DIRSERVER-1384)

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=797292&r1=797291&r2=797292&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
Fri Jul 24 01:01:01 2009
@@ -326,7 +326,7 @@
                 break;
             }
 
-            if ( cursor.isClosed() )
+            if ( req.isAbandoned() )
             {
                 // The cursor has been closed by an abandon request.
                 LOG.debug( "Request terminated by an AbandonRequest for message {}", 
@@ -336,6 +336,7 @@
             
             ClonedServerEntry entry = cursor.get();
             session.getIoSession().write( generateResponse( session, req, entry ) );
+            LOG.debug( "Sending {}", entry.getDn() );
             count++;
         }
         



Mime
View raw message