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

Fabio Pistolesi
24.35.2015 642e1f844e7b37d2d8306c4d4300123f46f85558
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/Importer.java
@@ -786,14 +786,27 @@
        {
          // Create a temp entry container
          sourceEntryContainer = entryContainer;
          final String name = baseDN.toIrreversibleReadableString() + "_importTmp";
          entryContainer = rootContainer.openEntryContainer(baseDN, name, txn);
          entryContainer = createEntryContainer(txn, baseDN);
        }
      }
    }
    return new Suffix(entryContainer, sourceEntryContainer, includeBranches, excludeBranches);
  }
  private EntryContainer createEntryContainer(WriteableStorage txn, DN baseDN) throws ConfigException
  {
    DN tempDN;
    try
    {
      tempDN = baseDN.child(DN.valueOf("dc=importTmp"));
    }
    catch (DirectoryException e)
    {
      throw new ConfigException(e.getMessageObject());
    }
    return rootContainer.openEntryContainer(tempDN, txn);
  }
  private void clearSuffix(EntryContainer entryContainer)
  {
    entryContainer.lock();