From 7ee84fd2ff21c5e25b9a234f974c08b49070fcaf Mon Sep 17 00:00:00 2001
From: mrossign <mrossign@localhost>
Date: Thu, 30 Oct 2008 16:30:36 +0000
Subject: [PATCH] Fix for #3543: Replication protocol incompatibility between v1 and v2: cannot upgrade a running replicated topology from v1 to v2
---
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java
index f74ff7a..a2ce835 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java
@@ -348,15 +348,13 @@
public byte[] getBytes(short reqProtocolVersion)
throws UnsupportedEncodingException
{
-
- // Using current protocol version should normally not be done as we would
- // normally call the getBytes() method instead for that. So this check
- // for security
+ // Of course, always support current protocol version
if (reqProtocolVersion == ProtocolVersion.getCurrentVersion())
{
return getBytes();
}
+ // Supported older protocol versions
switch (reqProtocolVersion)
{
case ProtocolVersion.REPLICATION_PROTOCOL_V1:
--
Gitblit v1.10.0