From c015616756e6faa64060971753bc77978ae82dec Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 07 Oct 2009 12:19:42 +0000
Subject: [PATCH] The documentation and the configuration of a Replication Domain allow a maximum value of 65535 for the server-id property. Nevertheless, the server-id in the ReplicationDomain implementation is managed as a short allowing a maximum value of 32767.
---
opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java b/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java
index fd1a111..b3d685e 100644
--- a/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java
@@ -122,7 +122,8 @@
@Override
public byte[] getBytes_V23() throws UnsupportedEncodingException
{
- return encodeHeader(MSG_TYPE_DELETE, 0);
+ return encodeHeader(MSG_TYPE_DELETE, 0,
+ ProtocolVersion.REPLICATION_PROTOCOL_V3);
}
/**
@@ -140,7 +141,8 @@
bodyLength += encodedEclIncludes.length + 1;
/* encode the header in a byte[] large enough to also contain the mods */
- byte [] encodedMsg = encodeHeader(MSG_TYPE_DELETE, bodyLength);
+ byte [] encodedMsg = encodeHeader(MSG_TYPE_DELETE, bodyLength,
+ ProtocolVersion.REPLICATION_PROTOCOL_V4);
int pos = encodedMsg.length - bodyLength;
pos = addByteArray(byteEntryAttrLen, encodedMsg, pos);
pos = addByteArray(encodedEclIncludes, encodedMsg, pos);
--
Gitblit v1.10.0