From a3f218b56d16d995c63ab7eef13a84818c6f2be7 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

---
 opendj-sdk/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java
index 7e8c1cf..9a1c734 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
+ *      Portions Copyright 2011 ForgeRock AS
  */
 package org.opends.server.replication.protocol;
 
@@ -154,7 +155,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;
@@ -179,7 +181,7 @@
 
     /* encode the header in a byte[] large enough to also contain the mods */
     byte [] encodedMsg = encodeHeader(MSG_TYPE_DELETE, bodyLength,
-        ProtocolVersion.REPLICATION_PROTOCOL_V4);
+        reqProtocolVersion);
     int pos = encodedMsg.length - bodyLength;
     if (byteInitiatorsName != null)
       pos = addByteArray(byteInitiatorsName, encodedMsg, pos);

--
Gitblit v1.10.0