From 6e14a8394d193af0fa32b83d3cc424787d41eadd Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 26 Jun 2014 13:19:57 +0000
Subject: [PATCH] OPENDJ-1453 (CR-3870) Replica offline messages should be synced with updates

---
 opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java |    5 +++++
 1 files changed, 5 insertions(+), 0 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 d828ce3..959bcb6 100644
--- a/opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/ReplicationMsg.java
@@ -85,6 +85,9 @@
   //   EntryMsg, InitializeRequestMsg, InitializeTargetMsg, ErrorMsg
   //   TopologyMsg
 
+  /** @since {@link ProtocolVersion#REPLICATION_PROTOCOL_V8} */
+  static final byte MSG_TYPE_REPLICA_OFFLINE = 37;
+
   // Adding a new type of message here probably requires to
   // change accordingly generateMsg method below
 
@@ -199,6 +202,8 @@
       return new StopMsg(buffer);
     case MSG_TYPE_INITIALIZE_RCV_ACK:
       return new InitializeRcvAckMsg(buffer);
+    case MSG_TYPE_REPLICA_OFFLINE:
+      return new ReplicaOfflineMsg(buffer);
     default:
       throw new DataFormatException("received message with unknown type");
     }

--
Gitblit v1.10.0