From 8c8912c4e085b6fc3b0549242d789e5a30c1b5fc Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 03 May 2007 03:09:50 +0000
Subject: [PATCH] Update the configuration handler so that the configuration archiving mechanism will handle direct changes to the configuration with the server offline.  If no configuation archive exists on startup, one will be created with the current configuration.  If an archive already exists, the current configuration will be compared against the latest archived configuration and if they differ (because the configuration has been modified with the server offline) then the current configuration will be archived.

---
 opends/src/server/org/opends/server/messages/ConfigMessages.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/ConfigMessages.java b/opends/src/server/org/opends/server/messages/ConfigMessages.java
index 428cd2d..e856107 100644
--- a/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -6584,6 +6584,17 @@
 
 
   /**
+   * The message ID for the message that will be used an error occurs while
+   * attempting to calculate a digest of the server configuration.  This takes
+   * two arguments, which are the path to the file the server is trying to
+   * digest, and a string representation of the exception that was caught.
+   */
+  public static final int MSGID_CONFIG_CANNOT_CALCULATE_DIGEST =
+       CATEGORY_MASK_CONFIG | SEVERITY_MASK_FATAL_ERROR | 654;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -6750,6 +6761,9 @@
     registerMessage(MSGID_CONFIG_FILE_CANNOT_VERIFY_EXISTENCE,
                     "An unexpected error occurred while attempting to " +
                     "determine whether configuration file %s exists:  %s");
+    registerMessage(MSGID_CONFIG_CANNOT_CALCULATE_DIGEST,
+                    "An error occurred while attempting to calculate a SHA-1 " +
+                    "digest of file %s:  %s");
     registerMessage(MSGID_CONFIG_UNABLE_TO_APPLY_STARTUP_CHANGES,
                     "An error occurred while attempting to apply the changes " +
                     "contained in file %s to the server configuration at " +

--
Gitblit v1.10.0