mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
02.25.2012 6aa5f59a010aa47be15e4b09b435bf88a310a6a7
opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -302,7 +302,7 @@
  }
  /**
   * This class is responsible for managing the configuraiton for VLV indexes
   * This class is responsible for managing the configuration for VLV indexes
   * used within this entry container.
   */
  public class VLVJEIndexCfgManager implements
@@ -3997,13 +3997,11 @@
   * Clear the contents for a database from disk.
   *
   * @param database The database to clear.
   * @return The number of records deleted.
   * @throws DatabaseException if a JE database error occurs.
   */
  public long clearDatabase(DatabaseContainer database)
  public void clearDatabase(DatabaseContainer database)
  throws DatabaseException
  {
    long count = 0;
    database.close();
    try
    {
@@ -4012,7 +4010,7 @@
        Transaction txn = beginTransaction();
        try
        {
          count = env.truncateDatabase(txn, database.getName(), true);
          env.removeDatabase(txn, database.getName());
          transactionCommit(txn);
        }
        catch(DatabaseException de)
@@ -4023,7 +4021,7 @@
      }
      else
      {
        count = env.truncateDatabase(null, database.getName(), true);
        env.removeDatabase(null, database.getName());
      }
    }
    finally
@@ -4032,10 +4030,8 @@
    }
    if(debugEnabled())
    {
      TRACER.debugVerbose("Cleared %d existing records from the " +
          "database %s", count, database.getName());
      TRACER.debugVerbose("Cleared the database %s", database.getName());
    }
    return count;
  }
  /**