From d356a45009acfa47a94f3d023ac38b4c1faadd13 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 17 Dec 2013 15:05:55 +0000
Subject: [PATCH] OPENDJ-1231 Make the Medium Consistency Point support replica heartbeats
---
opends/src/server/org/opends/server/replication/server/changelog/je/JEReplicaDB.java | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/changelog/je/JEReplicaDB.java b/opends/src/server/org/opends/server/replication/server/changelog/je/JEReplicaDB.java
index 0295fa0..d9779e6 100644
--- a/opends/src/server/org/opends/server/replication/server/changelog/je/JEReplicaDB.java
+++ b/opends/src/server/org/opends/server/replication/server/changelog/je/JEReplicaDB.java
@@ -652,24 +652,4 @@
db.setCounterRecordWindowSize(size);
}
- /**
- * Return the number of changes between 2 provided CSNs.
- * This a alternative to traverseAndCount, expected to be much more efficient
- * when there is a huge number of changes in the Db.
- * @param from The lower (older) CSN.
- * @param to The upper (newer) CSN.
- * @return The computed number of changes.
- */
- public long getCount(CSN from, CSN to)
- {
- // Now that we always keep the last CSN in the DB to avoid expiring cookies
- // too quickly, we need to check if the "to" is older than the trim date.
- if (to == null || !to.isOlderThan(new CSN(latestTrimDate, 0, 0)))
- {
- flush();
- return db.count(from, to);
- }
- return 0;
- }
-
}
--
Gitblit v1.10.0