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

abobrov
20.16.2009 d660328ffe2ad59ccf30b281ec02b3cf718f1c76
opends/src/server/org/opends/server/backends/ndb/BackendImpl.java
@@ -64,6 +64,7 @@
import org.opends.server.admin.Configuration;
import org.opends.server.admin.server.ConfigurationChangeListener;
import org.opends.server.admin.std.meta.GlobalCfgDefn.WorkflowConfigurationMode;
import org.opends.server.admin.std.meta.VirtualAttributeCfgDefn;
import org.opends.server.admin.std.server.NdbBackendCfg;
import org.opends.server.admin.std.server.NdbIndexCfg;
import org.opends.server.backends.SchemaBackend;
@@ -581,13 +582,18 @@
        operationalAttributes.add(attrName);
      }
    }
    // Strip virtual attributes.
    for (VirtualAttributeRule rule :
      DirectoryServer.getVirtualAttributes())
    {
      String attrName = rule.getAttributeType().getNameOrOID();
      if (operationalAttributes.contains(attrName)) {
        operationalAttributes.remove(attrName);
      if (rule.getConflictBehavior() ==
        VirtualAttributeCfgDefn.ConflictBehavior.VIRTUAL_OVERRIDES_REAL)
      {
        String attrName = rule.getAttributeType().getNameOrOID();
        if (operationalAttributes.contains(attrName)) {
          operationalAttributes.remove(attrName);
        }
      }
    }