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/common/ServerState.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/common/ServerState.java b/opends/src/server/org/opends/server/replication/common/ServerState.java
index 140de98..7e6be55 100644
--- a/opends/src/server/org/opends/server/replication/common/ServerState.java
+++ b/opends/src/server/org/opends/server/replication/common/ServerState.java
@@ -43,7 +43,7 @@
* For example, it is exchanged with the replication servers at connection
* establishment time to communicate "which CSNs was last seen by a serverId".
*/
-public class ServerState implements Iterable<Integer>
+public class ServerState implements Iterable<CSN>
{
/** Associates a serverId with a CSN. */
@@ -404,9 +404,9 @@
* {@inheritDoc}
*/
@Override
- public Iterator<Integer> iterator()
+ public Iterator<CSN> iterator()
{
- return serverIdToCSN.keySet().iterator();
+ return serverIdToCSN.values().iterator();
}
/**
--
Gitblit v1.10.0