From d89c47e7cb1b3c9181e25582539aac1dedb46099 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 08 Aug 2016 07:31:25 +0000
Subject: [PATCH] Partial OPENDJ-3106 Migrate Entry
---
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PersistentServerState.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PersistentServerState.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PersistentServerState.java
index b33750a..eb28cf2 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PersistentServerState.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/PersistentServerState.java
@@ -212,7 +212,7 @@
private void updateStateFromEntry(SearchResultEntry resultEntry)
{
AttributeType synchronizationStateType = DirectoryServer.getSchema().getAttributeType(REPLICATION_STATE);
- List<Attribute> attrs = resultEntry.getAttribute(synchronizationStateType);
+ List<Attribute> attrs = resultEntry.getAllAttributes(synchronizationStateType);
if (!attrs.isEmpty())
{
for (ByteString value : attrs.get(0))
@@ -344,7 +344,7 @@
CSN dbMaxCSN = serverStateMaxCSN;
for (SearchResultEntry resEntry : op.getSearchEntries())
{
- for (ByteString attrValue : resEntry.getAttribute(histType).get(0))
+ for (ByteString attrValue : resEntry.getAllAttributes(histType).get(0))
{
HistoricalAttributeValue histVal =
new HistoricalAttributeValue(attrValue.toString());
--
Gitblit v1.10.0