You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/05/08 22:35:36 UTC

svn commit: r1335751 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapSession.java

Author: elecharny
Date: Tue May  8 20:35:34 2012
New Revision: 1335751

URL: http://svn.apache.org/viewvc?rev=1335751&view=rev
Log:
Closed all the cursors associated with a PagedSearch when an AbandonRequest is received by the server for this search request

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

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapSession.java?rev=1335751&r1=1335750&r2=1335751&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapSession.java (original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapSession.java Tue May  8 20:35:34 2012
@@ -232,6 +232,16 @@ public class LdapSession
         {
             request = outstandingRequests.remove( messageId );
         }
+        
+        // Remove the PagedSearch cursors now
+        try
+        {
+            closeAllPagedSearches();
+        }
+        catch ( Exception e )
+        {
+            LOG.error( I18n.err( I18n.ERR_172, e.getLocalizedMessage() ) );
+        }
 
         if ( request == null )
         {