mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
13.22.2008 4ee9f7e5b2a8ae82e1969b0fc6e29d96c2994a11
opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java
@@ -1287,10 +1287,14 @@
      {
        if (ps.getMessageID() == messageID)
        {
          // We only need to find the first persistent search
          // associated with the provided message ID. The persistent
          // search will ensure that all other related persistent
          // searches are cancelled.
          CancelResult cancelResult = ps.cancel();
          if (keepStats && (cancelResult.getResultCode() ==
              ResultCode.CANCELED))
            ResultCode.CANCELED))
          {
            statTracker.updateAbandonedOperation();
          }
@@ -1428,6 +1432,11 @@
        for (PersistentSearch persistentSearch : getPersistentSearches())
        {
          if (persistentSearch.getMessageID() == messageID)
          {
            continue;
          }
          persistentSearch.cancel();
          lastCompletionTime.set(TimeThread.getTime());
        }