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

dugan
18.45.2006 43cae592f955d3ea485861295ff2d2403ca5a9b2
Throw database exception if openEntryContainer is called on a baseDN that is
already open.

1 files modified
6 ■■■■■ changed files
opends/src/server/org/opends/server/backends/jeb/RootContainer.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/RootContainer.java
@@ -239,6 +239,12 @@
  public EntryContainer openEntryContainer(DN baseDN) throws DatabaseException
  {
    EntryContainer ec = new EntryContainer(baseDN, backend, config, env);
    EntryContainer ec1=this.entryContainers.get(baseDN);
    //If an entry container for this baseDN is already open we don't allow
    //another to be opened.
      if (ec1 != null)
          throw new DatabaseException("Entry container for baseDN " +
                  baseDN.toString() + " already is open.");
    if(env.getConfig().getReadOnly())
    {
      ec.openReadOnly();