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

Jean-Noël Rouvignac
01.45.2016 39ae5d2d9bf3b741e288998371267a1c7a5d73f9
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
@@ -608,15 +608,15 @@
     * find subordinates of the base entry from the top of the tree downwards.
     */
    ByteString baseDN = toKey(searchOp.getBaseDN());
    ByteStringBuilder suffix = beforeKey(baseDN);
    ByteStringBuilder end = afterKey(baseDN);
    ByteStringBuilder beforeFirstChild = beforeFirstChildOf(baseDN);
    ByteStringBuilder afterLastChild = afterLastChildOf(baseDN);
    try (Cursor<ByteString, ByteString> cursor = txn.openCursor(getName()))
    {
      // Initialize the cursor very close to the starting value then
      // step forward until we pass the ending value.
      boolean success = cursor.positionToKeyOrNext(suffix);
      while (success && cursor.getKey().compareTo(end) < 0)
      boolean success = cursor.positionToKeyOrNext(beforeFirstChild);
      while (success && cursor.getKey().compareTo(afterLastChild) < 0)
      {
        // We have found a subordinate referral.
        // Make sure the referral is within scope.