From 5ba5a21b17c663c137efec84151e07821e9db14e Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 17 Aug 2006 18:58:55 +0000
Subject: [PATCH] Added an extra byte before the ASN1 encoding of database entries for versioning purposes. Also, error handling mechnisms are also added for handling incompatible version numbers. Some extra catch statements are removed to allow the orginal exception to bubble up to the debug logger.
---
opends/src/server/org/opends/server/messages/JebMessages.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/JebMessages.java b/opends/src/server/org/opends/server/messages/JebMessages.java
index f026eca..2467bf5 100644
--- a/opends/src/server/org/opends/server/messages/JebMessages.java
+++ b/opends/src/server/org/opends/server/messages/JebMessages.java
@@ -1222,6 +1222,15 @@
+ /**
+ * The message ID of an error indicating the version of DatabaseEntry is
+ * incompatible and can not be decoded.
+ */
+ public static final int MSGID_JEB_INCOMPATIBLE_ENTRY_VERSION =
+ CATEGORY_MASK_JEB | SEVERITY_MASK_SEVERE_ERROR | 126;
+
+
+
/**
* Associates a set of generic messages with the message IDs defined in this
@@ -1708,5 +1717,9 @@
"The number of threads allocated by the cleaner for log " +
"file processing. If the cleaner backlog becomes large, " +
"increase this number.");
+ registerMessage(MSGID_JEB_INCOMPATIBLE_ENTRY_VERSION,
+ "Entry record with ID %s is not compatible with this " +
+ "version of the backend database. " +
+ "Entry version: %x");
}
}
--
Gitblit v1.10.0