From 1c8b422d63f419d8c85a28b1f2276ac0f3e3632c Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Thu, 12 Jul 2007 15:41:32 +0000
Subject: [PATCH] Fix for 1895 Summary: Total update does not work with 3 servers that are also replication servers

---
 opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java b/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java
index 15847ed..4bed982 100644
--- a/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java
+++ b/opends/src/server/org/opends/server/replication/protocol/ReplicationMessage.java
@@ -53,6 +53,7 @@
   static final byte MSG_TYPE_DONE = 13;
   static final byte MSG_TYPE_ERROR = 14;
   static final byte MSG_TYPE_WINDOW_PROBE = 15;
+  static final byte MSG_TYPE_REPL_SERVER_INFO = 16;
   // Adding a new type of message here probably requires to
   // change accordingly generateMsg method below
 
@@ -73,6 +74,8 @@
    * MSG_TYPE_ENTRY
    * MSG_TYPE_DONE
    * MSG_TYPE_ERROR
+   * MSG_TYPE_WINDOW_PROBE
+   * MSG_TYPE_REPL_SERVER_INFO
    *
    * @return the byte[] representation of this message.
    * @throws UnsupportedEncodingException  When the encoding of the message
@@ -140,6 +143,9 @@
       case MSG_TYPE_WINDOW_PROBE:
         msg = new WindowProbe(buffer);
       break;
+      case MSG_TYPE_REPL_SERVER_INFO:
+        msg = new ReplServerInfoMessage(buffer);
+      break;
       default:
         throw new DataFormatException("received message with unknown type");
     }

--
Gitblit v1.10.0