From 3fcf167e0af7a8f405442b3b4c8b07404ec6c0ff Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Fri, 02 Mar 2007 09:22:58 +0000
Subject: [PATCH] issue 504,505,507 : res-synchronization after restore or import

---
 opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java
index 6a7c08a..1804fa5 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/common/ServerState.java
@@ -57,6 +57,19 @@
     list = new HashMap<Short, ChangeNumber>();
   }
 
+  /**
+   * Empty the ServerState.
+   * After this call the Server State will be in the same state
+   * as if it was just created.
+   */
+  public void clear()
+  {
+    synchronized (this)
+    {
+      list.clear();
+    }
+  }
+
 
   /**
    * Creates a new ServerState object from its encoded form.

--
Gitblit v1.10.0