From a592fe71c4c2e29a136f9700a2981f3dcbd7e114 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 22 Sep 2014 19:47:33 +0000
Subject: [PATCH] OPENDJ-1205 (CR-4428) Remove network layer from External ChangeLog implementation
---
opendj3-server-dev/src/server/org/opends/server/replication/common/ServerState.java | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/common/ServerState.java b/opendj3-server-dev/src/server/org/opends/server/replication/common/ServerState.java
index 91225fa..aa2789e 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/common/ServerState.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/common/ServerState.java
@@ -421,28 +421,4 @@
return saved;
}
- /**
- * Build a copy of the ServerState with only CSNs older than a provided
- * timestamp. This is used when building the initial Cookie in the External
- * Changelog, to cope with purged changes.
- *
- * @param timestamp
- * The timestamp to compare the ServerState against
- * @return a copy of the ServerState which only contains the CSNs older than
- * csn.
- */
- public ServerState duplicateOnlyOlderThan(long timestamp)
- {
- final CSN csn = new CSN(timestamp, 0, 0);
- final ServerState newState = new ServerState();
- for (CSN change : serverIdToCSN.values())
- {
- if (change.isOlderThan(csn))
- {
- newState.serverIdToCSN.put(change.getServerId(), change);
- }
- }
- return newState;
- }
-
}
--
Gitblit v1.10.0