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

neil_a_wilson
23.16.2007 71d60c2db03def788c464506afe1e087cf131db8
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -1521,6 +1521,8 @@
        }
      }
      // Increment the entry count.
      id2entry.adjustRecordCount(txn, 1);
    }
    /**
@@ -2019,6 +2021,8 @@
      id2cBuffered.flush();
      id2sBuffered.flush();
      // Decrement the entry count.
      id2entry.adjustRecordCount(txn, -getDeletedEntryCount());
    }
    /**
@@ -3249,7 +3253,7 @@
   */
  public long getEntryCount() throws DatabaseException
  {
    return id2entry.getRecordCount();
    return id2entry.getRecordCount(null);
  }
  /**
@@ -3733,21 +3737,6 @@
  }
  /**
   * Get the count of key/data pairs in the database in a JE database.
   * This is a simple wrapper around the JE Database.count method.
   * @param database the JE database handle.
   * @return The count of key/data pairs in the database.
   * @throws DatabaseException If an error occurs in the JE operation.
   */
  public static long count(Database database) throws DatabaseException
  {
    long count = database.count();
    assert debugAccess("count", DATABASE_READ, null, database,
        null, null, null);
    return count;
  }
  /**
   * Remove a database from disk.
   *
   * @param name The short database name, to which the entryContainer name will