directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1335751 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapSession.java
Date Tue, 08 May 2012 20:35:36 GMT
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 )
         {



Mime
View raw message