From 2246119784cdfb6f882eba79ed96d2dd9f56f8f9 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
---
opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java b/opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
index a8d347e..5a0decd 100644
--- a/opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
@@ -101,10 +101,7 @@
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();
--
Gitblit v1.10.0