From 8466db8c12700bbab0835f5f1bfa71762e34ba4d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 31 Aug 2007 17:55:26 +0000
Subject: [PATCH] Add support into the JE backend that can be used to store its compact schema encoding data in the database itself, and re-enable compact encoding by default in the configuration.  By storing the compact schema encoding data in the database (a separate copy for each backend), we have eliminated the potential problems in backup/restore and binary copy initialization if there are dependencies on an external schematokens.dat file.

---
 opends/src/server/org/opends/server/tools/DBTest.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/DBTest.java b/opends/src/server/org/opends/server/tools/DBTest.java
index a7a0849..552bf51 100644
--- a/opends/src/server/org/opends/server/tools/DBTest.java
+++ b/opends/src/server/org/opends/server/tools/DBTest.java
@@ -1319,7 +1319,9 @@
               try
               {
                 formatedData = System.getProperty("line.separator") +
-                    JebFormat.entryFromDatabase(data.getData()).toLDIFString();
+                    JebFormat.entryFromDatabase(data.getData(),
+                         ec.getRootContainer().getCompressedSchema()).
+                              toLDIFString();
                 dataLabel = INFO_LABEL_DBTEST_ENTRY.get();
               }
               catch(Exception e)

--
Gitblit v1.10.0