From 53e9b6737ff1f758a8b1cfc5c7fe6cebd158bf6e Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 29 Jan 2008 17:59:28 +0000
Subject: [PATCH] Fix for issue 2870: status and dsreplication status do not show replication monitoring The changes consist basically in using the new attributes "approx-older-change-not-synchronized-millis" and "missing-changes" in status and replication status command-lines.  In fact a millisecond version of approx-older-change-not-synchronized-millis has been added in order the remote command-line to be able to provide a localized version of the date (instead of directly presenting the date that was written by the server).

---
 opendj-sdk/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java b/opendj-sdk/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java
index 63d6616..0c42763 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java
@@ -257,6 +257,9 @@
         Date date = new Date(olderUpdateTime);
         attributes.add(new Attribute("approx-older-change-not-synchronized",
           date.toString()));
+        attributes.add(
+          new Attribute("approx-older-change-not-synchronized-millis",
+          String.valueOf(olderUpdateTime)));
       }
     }
     catch(Exception e)

--
Gitblit v1.10.0