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/server/ServerWriter.java |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerWriter.java b/opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerWriter.java
index 60d06c8..7ad2f45 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerWriter.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/server/ServerWriter.java
@@ -191,14 +191,7 @@
 
         // Publish the update to the remote server using a protocol version he
         // it supports
-        short pduProtocolVersion = update.getVersion();
-        if (protocolVersion < pduProtocolVersion)
-        { // The remote server wants a lower protocol version than the PDU one,
-          // send it the PDU, serializing it with the supported older version
-          session.publish(update, protocolVersion);
-        } else {
-          session.publish(update);
-        }
+        session.publish(update, protocolVersion);
       }
     }
     catch (NoSuchElementException e)

--
Gitblit v1.10.0