From 7f7b64309cef09200a1bb759c599518f3eff7b04 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 06 Apr 2007 19:03:09 +0000
Subject: [PATCH] Make a change to the way that we encode entries for storage in the backend, and move the logic from the JE backend into the core server.  Testing with entries generated from the example.template shows that the new encoding is about 15% smaller than the previous form, and exact search tests with no entry cache are about 7% faster with the new encoding.

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

diff --git a/opends/src/server/org/opends/server/messages/CoreMessages.java b/opends/src/server/org/opends/server/messages/CoreMessages.java
index 6229ac3..b969e7e 100644
--- a/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -6008,6 +6008,28 @@
   public static final int MSGID_DSCORE_DESCRIPTION_WINDOWS_NET_START =
        CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 599;
 
+
+
+  /**
+   * The message ID for the message that will be used if an entry is encoded
+   * with a version number that we don't support.  This takes a single argument,
+   * which is a hexadecimal representation of the version number byte.
+   */
+  public static final int MSGID_ENTRY_DECODE_UNRECOGNIZED_VERSION =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_MILD_ERROR | 600;
+
+
+
+  /**
+   * The message ID for the message that will be used if an exception is caught
+   * while attempting to decode an entry.  This takes a single argument, which
+   * is a string representation of the exception that was caught.
+   */
+  public static final int MSGID_ENTRY_DECODE_EXCEPTION =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_MILD_ERROR | 601;
+
+
+
   /**
    * Associates a set of generic messages with the message IDs defined
    * in this class.
@@ -6466,6 +6488,12 @@
                     "Unable to increment the value of attribute %s because " +
                     "either the current value or the increment could not " +
                     "be parsed as an integer.");
+    registerMessage(MSGID_ENTRY_DECODE_UNRECOGNIZED_VERSION,
+                    "Unable to decode an entry because it had an unsupported " +
+                    "entry version byte value of %s.");
+    registerMessage(MSGID_ENTRY_DECODE_EXCEPTION,
+                    "Unable to decode an entry because an unexpected " +
+                    "exception was caught during processing:  %s.");
 
 
     registerMessage(MSGID_SEARCH_FILTER_NULL,

--
Gitblit v1.10.0