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

Matthew Swift
23.13.2014 8ce2ccf4110c3847927334138646795dfe50acce
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/Index.java
@@ -519,9 +519,7 @@
          success = cursor.positionToKeyOrNext(lower);
          // Advance past the lower bound if necessary.
          if (success
              && !lowerIncluded
              && ByteSequence.COMPARATOR.compare(cursor.getKey(), lower) == 0)
          if (success && !lowerIncluded && cursor.getKey().equals(lower))
          {
            // Do not include the lower value.
            success = cursor.next();
@@ -544,12 +542,13 @@
          // Check against the upper bound if necessary
          if (upper.length() > 0)
          {
            int cmp = ByteSequence.COMPARATOR.compare(cursor.getKey(), upper);
            int cmp = cursor.getKey().compareTo(upper);
            if (cmp > 0 || (cmp == 0 && !upperIncluded))
            {
              break;
            }
          }
          EntryIDSet list = new EntryIDSet(cursor.getKey(), cursor.getValue());
          if (!list.isDefined())
          {