From 459796336f95d56450c970b87575f22c871b4604 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 10 Jun 2011 14:34:10 +0000
Subject: [PATCH] Partial fix for OPENDJ-194: Minor improvements to change log content and configuration
---
opends/src/server/org/opends/server/replication/protocol/AddMsg.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/AddMsg.java b/opends/src/server/org/opends/server/replication/protocol/AddMsg.java
index 0f4f479..611ff45 100644
--- a/opends/src/server/org/opends/server/replication/protocol/AddMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/AddMsg.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2010 Sun Microsystems, Inc.
+ * Portions Copyright 2011 ForgeRock AS
*/
package org.opends.server.replication.protocol;
@@ -273,7 +274,8 @@
* {@inheritDoc}
*/
@Override
- public byte[] getBytes_V4() throws UnsupportedEncodingException
+ public byte[] getBytes_V45(short reqProtocolVersion)
+ throws UnsupportedEncodingException
{
// Put together the different encoded pieces
int bodyLength = 0;
@@ -303,7 +305,7 @@
/* encode the header in a byte[] large enough to also contain the mods */
byte [] encodedMsg = encodeHeader(MSG_TYPE_ADD, bodyLength,
- ProtocolVersion.REPLICATION_PROTOCOL_V4);
+ reqProtocolVersion);
int pos = encodedMsg.length - bodyLength;
if (byteParentId != null)
--
Gitblit v1.10.0