From 0c04328d7c86a6b2d4badb96c79a22aba2fa7eca Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Fri, 16 May 2008 14:18:26 +0000
Subject: [PATCH] Fixes to improve performance using default JVM ergonomics:
---
opends/src/server/org/opends/server/backends/jeb/importLDIF/DNContext.java | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/importLDIF/DNContext.java b/opends/src/server/org/opends/server/backends/jeb/importLDIF/DNContext.java
index 8f95554..2d27644 100644
--- a/opends/src/server/org/opends/server/backends/jeb/importLDIF/DNContext.java
+++ b/opends/src/server/org/opends/server/backends/jeb/importLDIF/DNContext.java
@@ -34,7 +34,6 @@
import org.opends.server.backends.jeb.*;
import com.sleepycat.je.DatabaseException;
-import com.sleepycat.je.Transaction;
import com.sleepycat.je.LockMode;
import java.util.concurrent.BlockingQueue;
@@ -116,7 +115,7 @@
//Used to synchronize the parent ID map, since multiple worker threads
//can be accessing it.
- private Object synchObject = new Object();
+ private final Object synchObject = new Object();
/**
* The number of LDAP entries added to the database, used to update the
@@ -441,12 +440,11 @@
* Get the Entry ID of the parent entry.
* @param parentDN The parent DN.
* @param dn2id The DN2ID DB.
- * @param txn A database transaction,
* @return The entry ID of the parent entry.
* @throws DatabaseException If a DB error occurs.
*/
public
- EntryID getParentID(DN parentDN, DN2ID dn2id, Transaction txn)
+ EntryID getParentID(DN parentDN, DN2ID dn2id)
throws DatabaseException {
EntryID parentID;
synchronized(synchObject) {
@@ -469,7 +467,7 @@
return null;
}
}
- parentID = dn2id.get(txn, parentDN, LockMode.DEFAULT);
+ parentID = dn2id.get(null, parentDN, LockMode.DEFAULT);
//If the parent is in dn2id, add it to the cache.
if (parentID != null) {
synchronized(synchObject) {
--
Gitblit v1.10.0