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

abobrov
30.03.2008 d2a009d50cbd6869147b038fd91c4aa36d04f931
- Suppress MISSING_HIERARCHY warnings on server shutdown.
1 files modified
9 ■■■■■ changed files
opends/src/server/org/opends/server/core/BaseDnRegistry.java 9 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/BaseDnRegistry.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2007 Sun Microsystems, Inc.
 *      Portions Copyright 2007-2008 Sun Microsystems, Inc.
 */
package org.opends.server.core;
@@ -377,9 +377,12 @@
      // because some of the structural entries will be missing.
      if (! subordinateBackends.isEmpty())
      {
        Message message = WARN_DEREGISTER_BASEDN_MISSING_HIERARCHY.get(
        // Suppress this warning message on server shutdown.
        if (!DirectoryServer.getInstance().isShuttingDown()) {
          Message message = WARN_DEREGISTER_BASEDN_MISSING_HIERARCHY.get(
            String.valueOf(baseDN), backend.getBackendID());
        errors.add(message);
          errors.add(message);
        }
        if (!testOnly)
        {