From 31153ccec78ed6187b9543babccdaf996968d6bb Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Tue, 01 May 2007 17:20:27 +0000
Subject: [PATCH] Fix for issue #1262: database becomes empty when importing a not existing ldif file.

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

diff --git a/opends/src/server/org/opends/server/messages/ToolMessages.java b/opends/src/server/org/opends/server/messages/ToolMessages.java
index c7647b3..9bfe596 100644
--- a/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -7060,6 +7060,16 @@
 
 
   /**
+   * The message ID for the message that will be used if one of the LDIF files
+   * to be imported cannot be read.  This takes one argument, which is the
+   * pathname of a file that cannot be read.
+   */
+  public static final int MSGID_LDIFIMPORT_CANNOT_READ_FILE =
+       CATEGORY_MASK_TOOLS | SEVERITY_MASK_SEVERE_ERROR | 887;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -9281,6 +9291,9 @@
                     "shared lock for backend %s:  %s.  This lock should " +
                     "automatically be cleared when the rebuild process " +
                     "exits, so no further action should be required");
+
+    registerMessage(MSGID_LDIFIMPORT_CANNOT_READ_FILE,
+                    "The specified LDIF file %s cannot be read");
   }
 }
 

--
Gitblit v1.10.0