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

abobrov
19.31.2007 0d0e96d6f1ddcbf9da939394676c56f73c97ce63
make searchIndexed() method execute only when we have related index. 
searchNotIndexed() will execute for when a given search is not indexed.
1 files modified
3 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java 3 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -658,7 +658,8 @@
    // Evaluate the search scope against the id2children and id2subtree indexes.
    boolean candidatesAreInScope = false;
    if (entryIDList.size() > IndexFilter.FILTER_CANDIDATE_THRESHOLD)
    if (entryIDList.isDefined() &&
            entryIDList.size() > IndexFilter.FILTER_CANDIDATE_THRESHOLD)
    {
      // Read the ID from dn2id.
      EntryID baseID = dn2id.get(null, baseDN);