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

pgamba
09.20.2007 fe9faab50fd85edd94fc5ce40d50f4720f6a3b63
Fix the location of the reject file of the import of the repli initialization
1 files modified
8 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 8 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java
@@ -34,8 +34,10 @@
import static org.opends.server.replication.protocol.OperationContext.*;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.createEntry;
import static org.opends.server.util.StaticUtils.getFileForPath;
import static org.opends.server.util.StaticUtils.stackTraceToSingleLineString;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.net.SocketTimeoutException;
@@ -3185,8 +3187,10 @@
        importConfig.setAppendToExistingData(false);
        // TODO How to deal with rejected entries during the import
        importConfig.writeRejectedEntries("rejectedImport",
         ExistingFileBehavior.OVERWRITE);
        importConfig.writeRejectedEntries(
          getFileForPath("logs" + File.separator +
              "replInitRejectedEntries").getAbsolutePath(),
          ExistingFileBehavior.OVERWRITE);
        // Process import
        backend.importLDIF(importConfig);