From 642e1f844e7b37d2d8306c4d4300123f46f85558 Mon Sep 17 00:00:00 2001
From: Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Date: Tue, 24 Feb 2015 13:35:36 +0000
Subject: [PATCH] OPENDJ-1800 Find a better way to manage database prefix names in a Storage
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
index 376e990..567129a 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
@@ -431,8 +431,6 @@
*
* @param baseDN The baseDN this entry container will be responsible for
* storing on disk.
- * @param databasePrefix The prefix to use in the database names used by
- * this entry container.
* @param backend A reference to the JE backend that is creating this entry
* container. It is needed by the Directory Server entry cache
* methods.
@@ -441,16 +439,15 @@
* @param rootContainer The root container this entry container is in.
* @throws ConfigException if a configuration related error occurs.
*/
- EntryContainer(DN baseDN, String databasePrefix, Backend<?> backend,
- PluggableBackendCfg config, Storage env, RootContainer rootContainer)
- throws ConfigException
+ EntryContainer(DN baseDN, Backend<?> backend, PluggableBackendCfg config, Storage env, RootContainer rootContainer)
+ throws ConfigException
{
this.backend = backend;
this.baseDN = baseDN;
this.config = config;
this.storage = env;
this.rootContainer = rootContainer;
- this.databasePrefix = databasePrefix;
+ this.databasePrefix = baseDN.toIrreversibleReadableString();
config.addPluggableChangeListener(this);
--
Gitblit v1.10.0