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

Jean-Noel Rouvignac
02.31.2014 96374465e56c6027fb267371f4e971f8f51da2f4
opendj3-server-dev/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -1271,12 +1271,13 @@
    boolean continueSearch = true;
    // Set the starting value.
    EntryID begin = null;
    if (pageRequest != null && pageRequest.getCookie().length() != 0)
    {
      // The cookie contains the ID of the next entry to be returned.
      try
      {
        new EntryID(pageRequest.getCookie().toLong());
        begin = new EntryID(pageRequest.getCookie().toLong());
      }
      catch (Exception e)
      {
@@ -1308,11 +1309,12 @@
    // Iterate through the index candidates.
    if (continueSearch)
    {
      for (EntryID id : entryIDList)
      for (Iterator<EntryID> it = entryIDList.iterator(begin); it.hasNext();)
      {
        Entry entry;
        final EntryID id = it.next();
        // Try the entry cache first.
        Entry entry;
        Entry cacheEntry = entryCache.getEntry(backend, id.longValue());
        if (cacheEntry == null)
        {
@@ -1398,7 +1400,6 @@
      Control control = new PagedResultsControl(pageRequest.isCritical(), 0, null);
      searchOperation.getResponseControls().add(control);
    }
  }
  private boolean isInScope(boolean candidatesAreInScope, SearchScope searchScope, DN aBaseDN, Entry entry)