From 77131174b396433451592ca82362a3534ce74c80 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 16 Dec 2014 14:49:33 +0000
Subject: [PATCH] OPENDJ-1602 (CR-5566) New pluggable storage based backend

---
 opendj3-server-dev/src/server/org/opends/server/backends/pluggable/DN2URI.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/DN2URI.java b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/DN2URI.java
index d4c4d94..d3d7f78 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/DN2URI.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/pluggable/DN2URI.java
@@ -497,7 +497,7 @@
    * DN.  The referral URLs will be set appropriately for the references found
    * in the referral entry.
    */
-  public void targetEntryReferrals(DN targetDN, SearchScope searchScope)
+  public void targetEntryReferrals(ReadableStorage txn, DN targetDN, SearchScope searchScope)
        throws DirectoryException
   {
     if (containsReferrals == ConditionResult.UNDEFINED)
@@ -512,7 +512,7 @@
 
     try
     {
-      Cursor cursor = storage.openCursor(treeName);
+      final Cursor cursor = txn.openCursor(treeName);
       try
       {
         // Go up through the DIT hierarchy until we find a referral.
@@ -550,7 +550,7 @@
    *          has been reached or the search has been abandoned).
    * @throws DirectoryException If a Directory Server error occurs.
    */
-  public boolean returnSearchReferences(SearchOperation searchOp)
+  public boolean returnSearchReferences(ReadableStorage txn, SearchOperation searchOp)
        throws DirectoryException
   {
     if (containsReferrals == ConditionResult.UNDEFINED)
@@ -584,7 +584,7 @@
     ByteSequence startKey = suffix;
     try
     {
-      Cursor cursor = storage.openCursor(treeName);
+      final Cursor cursor = txn.openCursor(treeName);
       try
       {
         // Initialize the cursor very close to the starting value then

--
Gitblit v1.10.0