From 2fc933d03d5961fa75fc4a8ffef75d3ec3b125d6 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 04 Oct 2013 12:46:34 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB
---
opends/src/server/org/opends/server/replication/server/ReplicationDomainMonitorData.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/server/ReplicationDomainMonitorData.java b/opends/src/server/org/opends/server/replication/server/ReplicationDomainMonitorData.java
index 14e85c3..d666b28 100644
--- a/opends/src/server/org/opends/server/replication/server/ReplicationDomainMonitorData.java
+++ b/opends/src/server/org/opends/server/replication/server/ReplicationDomainMonitorData.java
@@ -294,22 +294,21 @@
*/
public void setMaxCSNs(ServerState state)
{
- for (Integer serverId : state) {
- CSN newCSN = state.getCSN(serverId);
- setMaxCSN(serverId, newCSN);
+ for (CSN newCSN : state)
+ {
+ setMaxCSN(newCSN);
}
}
/**
* For the provided serverId, sets the provided CSN as the max if
* it is newer than the current max.
- * @param serverId the provided serverId
* @param newCSN the provided new CSN
*/
- public void setMaxCSN(int serverId, CSN newCSN)
+ public void setMaxCSN(CSN newCSN)
{
- if (newCSN==null) return;
-
+ if (newCSN == null) return;
+ int serverId = newCSN.getServerId();
CSN currentMaxCSN = maxCSNs.get(serverId);
if (currentMaxCSN == null)
{
--
Gitblit v1.10.0