From a592fe71c4c2e29a136f9700a2981f3dcbd7e114 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 22 Sep 2014 19:47:33 +0000
Subject: [PATCH] OPENDJ-1205 (CR-4428) Remove network layer from External ChangeLog implementation

---
 opendj3-server-dev/src/server/org/opends/server/replication/protocol/ReplicationMsg.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/protocol/ReplicationMsg.java b/opendj3-server-dev/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
index 3fef9a1..d9ab381 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
@@ -71,8 +71,11 @@
   static final byte MSG_TYPE_GENERIC_UPDATE = 29;
 
   // Added for protocol version 3
+  @Deprecated
   static final byte MSG_TYPE_START_ECL = 30;
+  @Deprecated
   static final byte MSG_TYPE_START_ECL_SESSION = 31;
+  @Deprecated
   static final byte MSG_TYPE_ECL_UPDATE = 32;
   static final byte MSG_TYPE_CT_HEARTBEAT = 33;
 
@@ -190,11 +193,12 @@
     case MSG_TYPE_GENERIC_UPDATE:
       return new UpdateMsg(buffer);
     case MSG_TYPE_START_ECL:
-      return new ServerStartECLMsg(buffer);
     case MSG_TYPE_START_ECL_SESSION:
-      return new StartECLSessionMsg(buffer);
     case MSG_TYPE_ECL_UPDATE:
-      return new ECLUpdateMsg(buffer);
+      // Legacy versions never sent such messages to other instances (other JVMs).
+      // They were only used in the combined DS-RS case.
+      // It is safe to totally ignore these values since code now uses the ChangelogBackend.
+      return null;
     case MSG_TYPE_CT_HEARTBEAT:
       return new ChangeTimeHeartbeatMsg(buffer, protocolVersion);
     case MSG_TYPE_REPL_SERVER_START_DS:

--
Gitblit v1.10.0