From f6f44d80e15b638b013a725396a8d7fe03031a1f Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 06 May 2008 22:12:59 +0000
Subject: [PATCH] Fixed an issue where a NPE could be thrown when the server processes a mod DN operation with a new superior entry thats in the subtree to be moved. An informative error message is added so the user can fix the mistake.
---
opends/src/server/org/opends/server/backends/jeb/ID2Entry.java | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java b/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java
index 80c5fc3..9378e9b 100644
--- a/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java
+++ b/opends/src/server/org/opends/server/backends/jeb/ID2Entry.java
@@ -223,8 +223,7 @@
DatabaseEntry data = new DatabaseEntry();
OperationStatus status;
- status = read(txn, key, data,
- LockMode.DEFAULT);
+ status = read(txn, key, data, lockMode);
if (status != OperationStatus.SUCCESS)
{
--
Gitblit v1.10.0