From 3108952a616e5a7548f646555c716bdc52db91ea Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 31 May 2010 12:06:59 +0000
Subject: [PATCH] Resolve an issue where some changes might appear to be missing after restoring a backend. A replayed change that resolve in no change still must update the historical information.
---
opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java b/opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java
index c69c194..f15df16 100644
--- a/opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2006-2009 Sun Microsystems, Inc.
+ * Copyright 2006-2010 Sun Microsystems, Inc.
*/
package org.opends.server.replication.protocol;
@@ -169,6 +169,23 @@
}
if (protocolVersion >= ProtocolVersion.REPLICATION_PROTOCOL_V2)
{
+ String mods = "";
+ try
+ {
+ ArrayList<RawModification> ldapmods = decodeRawMods(encodedMods);
+
+ for (RawModification mod : ldapmods)
+ {
+ mods += mod.toString();
+ }
+ } catch (LDAPException e)
+ {
+
+ } catch (ASN1Exception e)
+ {
+
+ }
+
return "ModifyMsg content: " +
" protocolVersion: " + protocolVersion +
" dn: " + dn +
@@ -176,7 +193,11 @@
" uniqueId: " + uniqueId +
" assuredFlag: " + assuredFlag +
" assuredMode: " + assuredMode +
- " safeDataLevel: " + safeDataLevel;
+ " safeDataLevel: " + safeDataLevel +
+ " size: " + encodedMods.length +
+ mods;
+
+
}
return "!!! Unknown version: " + protocolVersion + "!!!";
}
--
Gitblit v1.10.0