From 14809a0c5e44468632e3ddf56000c88bacaec0aa Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 23 Aug 2007 23:14:02 +0000
Subject: [PATCH] Added the JE backend configuration attribute to enable or disable compression when encoding entries for ID2Entry. When backend-compact-encoding  is enabled, attribute type descriptions and object class sets will be encoded using a compressed form. This behavior is enabled by default.

---
 opends/src/server/org/opends/server/backends/jeb/EntryContainer.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java b/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
index c6fe728..0080ff6 100644
--- a/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
+++ b/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -481,8 +481,9 @@
   {
     try
     {
-      DataConfig entryDataConfig = new DataConfig();
-      entryDataConfig.setCompressed(config.isBackendEntriesCompressed());
+      DataConfig entryDataConfig =
+          new DataConfig(config.isBackendEntriesCompressed(),
+                         config.isBackendCompactEncoding());
 
       id2entry = new ID2Entry(databasePrefix + "_" + ID2ENTRY_DATABASE_NAME,
                               entryDataConfig, env, this);
@@ -4241,8 +4242,9 @@
       }
     }
 
-    DataConfig entryDataConfig = new DataConfig();
-    entryDataConfig.setCompressed(cfg.isBackendEntriesCompressed());
+    DataConfig entryDataConfig =
+        new DataConfig(cfg.isBackendEntriesCompressed(),
+                       cfg.isBackendCompactEncoding());
     id2entry.setDataConfig(entryDataConfig);
 
     this.config = cfg;

--
Gitblit v1.10.0