From afaa2b0b0a24286830f856365da6fd3ef04ca069 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 15 Sep 2009 18:08:44 +0000
Subject: [PATCH] Fix issue 4231: Import-ldif fails to import 6M entries
---
opends/src/server/org/opends/server/backends/jeb/BackendImpl.java | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
index 0ff6db0..7eb3ccb 100644
--- a/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
+++ b/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
@@ -56,6 +56,7 @@
import org.opends.server.core.ModifyDNOperation;
import org.opends.server.core.SearchOperation;
import org.opends.server.util.LDIFException;
+import org.opends.server.util.RuntimeInformation;
import org.opends.server.util.Validator;
import static org.opends.server.util.StaticUtils.*;
@@ -1092,6 +1093,8 @@
public LDIFImportResult importLDIF(LDIFImportConfig importConfig)
throws DirectoryException
{
+ RuntimeInformation.logInfo();
+
// If the backend already has the root container open, we must use the same
// underlying root container
boolean openRootContainer = rootContainer == null;
@@ -1130,6 +1133,8 @@
envConfig.setTxnNoSync(false);
envConfig.setConfigParam("je.env.isLocking", "true");
envConfig.setConfigParam("je.env.runCheckpointer", "false");
+ envConfig.setConfigParam("je.evictor.lruOnly", "false");
+ envConfig.setConfigParam("je.evictor.nodesPerScan", "128");
Importer importer = new Importer(importConfig, cfg);
importer.initialize(envConfig);
rootContainer = initializeRootContainer(envConfig);
--
Gitblit v1.10.0