From 07608669c09feb6964c2e25e98cb378d220e16bf Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Mon, 15 Jun 2009 07:19:18 +0000
Subject: [PATCH] Fix for 4052 : Ghost adds in Replication Server   The clear procedure of the Replication Server was failing if several clear are done consecutively. The cause of the failure is that the dnHandler were not shutdown properly at this time. The first clear therefore seemed successful but was leaving some open DBhandler  that was causing later clear to fail. 

---
 opends/src/server/org/opends/server/replication/server/ServerHandler.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ServerHandler.java b/opends/src/server/org/opends/server/replication/server/ServerHandler.java
index 63df0d1..96f8a45 100644
--- a/opends/src/server/org/opends/server/replication/server/ServerHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/ServerHandler.java
@@ -302,7 +302,7 @@
     // replication server domain
     if (oldGenerationId != -100)
     {
-      replicationServerDomain.setGenerationId(oldGenerationId, false);
+      replicationServerDomain.changeGenerationId(oldGenerationId, false);
     }
   }
 

--
Gitblit v1.10.0