From 0ef56d4515f70530da93570f9af3a0744fe77d12 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Thu, 15 Nov 2007 16:50:07 +0000
Subject: [PATCH] Fix #2424 impact of generation ID on binary copy - an LDAP server that has already sent changes must not be able to replicate with an empty replication server
---
opends/src/server/org/opends/server/replication/common/ServerState.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 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 530e914..1f8b711 100644
--- a/opends/src/server/org/opends/server/replication/common/ServerState.java
+++ b/opends/src/server/org/opends/server/replication/common/ServerState.java
@@ -329,4 +329,14 @@
}
return true;
}
+
+ /**
+ * Tests if the state is empty.
+ *
+ * @return True if the state is empty.
+ */
+ public boolean isEmpty()
+ {
+ return list.isEmpty();
+ }
}
--
Gitblit v1.10.0