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

Jean-Noel Rouvignac
26.33.2015 5acad50b3c63c62e4984f8c55fd323c693d0b6b9
Fixed little issue in r11634.
1 files modified
10 ■■■■ changed files
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java 10 ●●●● patch | view | raw | blame | history
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java
@@ -253,11 +253,11 @@
      logger.error(ERR_JEB_IMPORT_LDIF_PENDING_ERR, e.getMessage());
      throw e;
    }
    //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.
    boolean parentThere = !dnCache.contains(dn)
        && !clearedBackend
        && getDN2ID().get(null, dn, LockMode.DEFAULT) != null;
    // Either parent is in the DN cache,
    // or else check the dn2id database for the DN (only if backend wasn't cleared)
    final boolean parentThere = dnCache.contains(dn)
        || (!clearedBackend
            && getDN2ID().get(null, dn, LockMode.DEFAULT) != null);
    //Add the DN to the parent set if needed.
    if (parentThere) {
      synchronized(synchObject) {