From c015616756e6faa64060971753bc77978ae82dec Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 07 Oct 2009 12:19:42 +0000
Subject: [PATCH] The documentation and the configuration of a Replication Domain allow a maximum value of 65535 for the server-id property. Nevertheless, the server-id in the ReplicationDomain implementation is managed as a short allowing a maximum value of 32767.
---
opends/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingMatchingRule.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingMatchingRule.java b/opends/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingMatchingRule.java
index 0fd77ee..c3aead8 100644
--- a/opends/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingMatchingRule.java
+++ b/opends/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingMatchingRule.java
@@ -149,7 +149,7 @@
String serverId = token[1].substring(16,20);
String seqNumber = token[1].substring(20, 28);
- if (MultimasterReplication.isLocalServerId(Short.parseShort(serverId, 16)))
+ if (MultimasterReplication.isLocalServerId(Integer.parseInt(serverId, 16)))
return ByteString.valueOf(serverId + timestamp + seqNumber);
else
return (ByteString.valueOf("0"));
--
Gitblit v1.10.0