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

Jean-Noël Rouvignac
02.31.2016 570a8fc9d5996cd19861e23363d2adb2b59dfbfd
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/VLVIndex.java
@@ -417,16 +417,9 @@
    for (final SortKey sortKey : sortKeys)
    {
      final AttributeDescription attrDesc = AttributeDescription.valueOf(sortKey.getAttributeDescription());
      final AttributeType attributeType = attrDesc.getAttributeType();
      final List<AttributeType> subTypes = DirectoryServer.getSchema().getSubTypes(attributeType);
      for (final Modification mod : mods)
      if (EntryContainer.isAttributeModified(attrDesc.getAttributeType(), mods))
      {
        final AttributeType modAttrType = mod.getAttribute().getAttributeDescription().getAttributeType();
        if (modAttrType.equals(attributeType)
            || subTypes.contains(modAttrType))
        {
          return true;
        }
        return true;
      }
    }
    return false;