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

coulbeck
05.55.2006 76e4f2c7318b9d71677e6916f92082319d461a00
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/ImportJob.java
@@ -214,7 +214,7 @@
    rootContainer.openEntryContainers(config.getBaseDNs());
    // Create the import contextes for each base DN.
    // Create the import contexts for each base DN.
    EntryID highestID = null;
    DN baseDN;
@@ -672,11 +672,8 @@
      {
        // Make sure the parent entry exists, unless this entry is a base DN.
        EntryID parentID = null;
        DN parentDN = null;
        if (!entryDN.equals(importContext.getBaseDN()))
        {
          parentDN = entryDN.getParent();
        }
        DN parentDN = importContext.getEntryContainer().
             getParentWithinBase(entryDN);
        if (parentDN != null)
        {
          parentID = dn2id.get(txn, parentDN);
@@ -713,10 +710,9 @@
          if (parentID != null)
          {
            IDs.add(parentID);
            DN baseDN = importContext.getBaseDN();
            for (DN dn = parentDN.equals(baseDN) ? null : parentDN.getParent();
                 dn != null;
                 dn = dn.equals(baseDN) ? null : dn.getParent())
            EntryContainer ec = importContext.getEntryContainer();
            for (DN dn = ec.getParentWithinBase(parentDN); dn != null;
                 dn = ec.getParentWithinBase(dn))
            {
              // Read the ID from dn2id.
              EntryID nodeID = dn2id.get(txn, dn);