From f312ec4a15ca08a406c045748e9d627fe1e31494 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 17 Nov 2006 13:46:39 +0000
Subject: [PATCH] The synchronization changelog monitoring information has a counter named waiting-changes that publish the number of updates known by the changelog server that have not yest been sent to each ldap server because they are too slow to replay them.

---
 opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ChangeNumber.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ChangeNumber.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ChangeNumber.java
index ec67d61..710f6a8 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ChangeNumber.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ChangeNumber.java
@@ -48,11 +48,10 @@
     timeStamp = Long.parseLong(temp, 16);
 
     temp = str.substring(16, 20);
-    seqnum = Integer.parseInt(temp, 16);
-
-    temp = str.substring(20, 24);
     serverId = Short.parseShort(temp, 16);
 
+    temp = str.substring(20, 28);
+    seqnum = Integer.parseInt(temp, 16);
   }
 
   /**
@@ -140,7 +139,7 @@
    */
   public String toString()
   {
-    return String.format("%016x%04x%04x", timeStamp, seqnum, serverId);
+    return String.format("%016x%04x%08x", timeStamp, serverId, seqnum);
   }
 
   /**

--
Gitblit v1.10.0