From 85a73c7cf7f7c76aa36abc9c75e570a95111970a Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 03 Feb 2011 13:07:44 +0000
Subject: [PATCH] IN PROGRESS - issue OPENDJ-23: Exception while replaying a delete operation using assured replication.  https://bugster.forgerock.org/jira/browse/OPENDJ-23

---
 opendj-sdk/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
index 5ac41d8..29e756b 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
+ *      Portions Copyright 2011 ForgeRock AS
  */
 
 package org.opends.server.replication.plugin;
@@ -2474,15 +2475,8 @@
        return;
      }
 
-    LDAPFilter filter = null;
-    try
-    {
-      filter = LDAPFilter.decode(
-          DS_SYNC_CONFLICT + "=" + freedDN.toNormalizedString());
-    } catch (LDAPException e)
-    {
-      // Not possible. We know the filter just above is correct.
-    }
+    LDAPFilter filter = LDAPFilter.createEqualityFilter(DS_SYNC_CONFLICT,
+        ByteString.valueOf(freedDN.toString()));
 
      LinkedHashSet<String> attrs = new LinkedHashSet<String>(1);
      attrs.add(EntryHistorical.HISTORICALATTRIBUTENAME);

--
Gitblit v1.10.0