From d2a009d50cbd6869147b038fd91c4aa36d04f931 Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Wed, 30 Jan 2008 18:03:00 +0000
Subject: [PATCH] - Suppress MISSING_HIERARCHY warnings on server shutdown.

---
 opends/src/server/org/opends/server/core/BaseDnRegistry.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/BaseDnRegistry.java b/opends/src/server/org/opends/server/core/BaseDnRegistry.java
index 8303f09..da26a68 100644
--- a/opends/src/server/org/opends/server/core/BaseDnRegistry.java
+++ b/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)
         {

--
Gitblit v1.10.0