From 99480fcbcb68be6a357f6218668feab697e1a93d Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Tue, 07 Jul 2009 14:55:26 +0000
Subject: [PATCH] Fix for 4096 MonitorMsg is not compatible with replication version

---
 opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java b/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java
index ca50458..5152c9a 100644
--- a/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Copyright 2006-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.replication.protocol;
 
@@ -194,17 +194,8 @@
   public byte[] getBytes(short reqProtocolVersion)
     throws UnsupportedEncodingException
   {
-    // Of course, always support current protocol version
-    if (reqProtocolVersion == ProtocolVersion.getCurrentVersion())
-    {
-      return getBytes();
-    }
-    else
-    {
-      throw new UnsupportedEncodingException(getClass().getSimpleName() +
-          " PDU does not support requested protocol version serialization: " +
-          reqProtocolVersion);
-    }
+    // There was no change since version 2.
+    return getBytes();
   }
 
   /**

--
Gitblit v1.10.0