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

Jean-Noel Rouvignac
26.47.2015 6637153a58af50420660a656d04ef48eedda2a9c
opendj3-server-dev/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java
@@ -253,16 +253,11 @@
      logger.error(ERR_JEB_IMPORT_LDIF_PENDING_ERR, e.getMessage());
      throw e;
    }
    //Check the DN cache.
    boolean parentThere = dnCache.contains(dn);
    //If the parent isn't found in the DN cache, then check the dn2id database
    //for the DN only if the backend wasn't cleared.
    if(!parentThere
    boolean parentThere = !dnCache.contains(dn)
        && !clearedBackend
        && getDN2ID().get(null, dn, LockMode.DEFAULT) != null)
    {
      parentThere = true;
    }
        && getDN2ID().get(null, dn, LockMode.DEFAULT) != null;
    //Add the DN to the parent set if needed.
    if (parentThere) {
      synchronized(synchObject) {