From e117044206787810309294cf77ff254134883481 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Wed, 01 Aug 2007 22:41:18 +0000
Subject: [PATCH] Fixed a typo for the max block size attribute in the VLV index configuration

---
 opends/src/server/org/opends/server/backends/jeb/BackendImpl.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
index aabc606..007f66e 100644
--- a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
+++ b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
@@ -1080,11 +1080,12 @@
         envConfig.setConfigParam("je.env.isLocking", "true");
         envConfig.setConfigParam("je.env.runCheckpointer", "false");
       }
-      else if(importConfig.clearBackend())
+      else if(importConfig.clearBackend() || cfg.getBackendBaseDN().size() <= 1)
       {
         // We have the writer lock on the environment, now delete the
         // environment and re-open it. Only do this when we are
-        // importing to all the base DNs in the backend.
+        // importing to all the base DNs in the backend or if the backend only
+        // have one base DN.
 
         File backendDirectory = getFileForPath(cfg.getBackendDirectory());
         EnvManager.removeFiles(backendDirectory.getPath());

--
Gitblit v1.10.0