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

Fabio Pistolesi
28.52.2016 09bc45b1b94dad21572ba75b07ffe05baba103df
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DefaultIndex.java
@@ -291,10 +291,10 @@
  }
  @Override
  public boolean setProtected(boolean protectIndex)
  public boolean setConfidential(boolean indexConfidential)
  {
    final boolean rebuildRequired = this.encryptValues != protectIndex;
    this.encryptValues = protectIndex;
    final boolean rebuildRequired = !this.encryptValues && indexConfidential;
    this.encryptValues = indexConfidential;
    return rebuildRequired;
  }