From da91925d9cbce53e0f96fdbbfb1a993167719563 Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Wed, 04 Oct 2006 17:34:00 +0000
Subject: [PATCH] Remove the unused method EntryContainer#removeAllDatabases.  It is broken because it calls Environment#removeDatabase on a database with an open handle, whose documentation says "Applications should never remove databases with open Database  handles".

---
 opends/src/server/org/opends/server/backends/jeb/EntryContainer.java |   17 +----------------
 1 files changed, 1 insertions(+), 16 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 908d7f1..5b0632c 100644
--- a/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
+++ b/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -205,7 +205,7 @@
     this.config = config;
     this.env = env;
 
-    // Instantiate database and cursor lists
+    // Instantiate the list of database handles.
     databases = new ArrayList<Database>();
 
     // Instantiate indexes for id2children and id2subtree.
@@ -3724,21 +3724,6 @@
   }
 
   /**
-   * Remove from disk all the databases in this entryContainer.
-   *
-   * @throws DatabaseException If an error occurs while attempting to delete any
-   * database.
-   */
-  private void removeAllDatabases() throws DatabaseException
-  {
-    for(Database database : databases)
-    {
-      String name = database.getDatabaseName();
-      env.removeDatabase(null, name);
-    }
-  }
-
-  /**
    * This method constructs a container name from a base DN. Only alphanumeric
    * characters are preserved, all other characters are replaced with an
    * underscore.

--
Gitblit v1.10.0