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

Fabio Pistolesi
14.08.2016 74fea9c73aa679eebe68f78d34ae80fa0f263c24
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DefaultIndex.java
@@ -102,7 +102,7 @@
      codec = new EntryIDSet.EntryIDSetCodecV3(codec, cryptoSuite);
    }
    trusted = flags.contains(TRUSTED);
    if (!trusted && entryContainer.getHighestEntryID(txn).longValue() == 0)
    if (createOnDemand && !trusted && entryContainer.isEmpty(txn))
    {
      // If there are no entries in the entry container then there
      // is no reason why this index can't be upgraded to trusted.