From cc98695069d613fb483650235920b70f1022f4d5 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Thu, 29 Nov 2007 08:43:16 +0000
Subject: [PATCH] Fix #2630 dsrepl pre-external-initialization does not work with bin copy

---
 opends/src/server/org/opends/server/protocols/LDIFConnectionHandler.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/protocols/LDIFConnectionHandler.java b/opends/src/server/org/opends/server/protocols/LDIFConnectionHandler.java
index 8060bed..2acdc5d 100644
--- a/opends/src/server/org/opends/server/protocols/LDIFConnectionHandler.java
+++ b/opends/src/server/org/opends/server/protocols/LDIFConnectionHandler.java
@@ -110,6 +110,9 @@
   // The thread used to run the connection handler.
   private Thread connectionHandlerThread;
 
+  // Help to not warn permanently and fullfill the log file
+  // in debug mode.
+  private boolean alreadyWarn = false;
 
 
   /**
@@ -123,6 +126,7 @@
     isStopped               = true;
     stopRequested           = false;
     connectionHandlerThread = null;
+    alreadyWarn = false;
   }
 
 
@@ -288,11 +292,12 @@
           }
           else
           {
-            if (debugEnabled())
+            if (!alreadyWarn && debugEnabled())
             {
               TRACER.debugInfo("LDIF connection handler directory " +
                                dir.getAbsolutePath() +
                                "doesn't exist or isn't a file");
+              alreadyWarn = true;
             }
           }
 

--
Gitblit v1.10.0