From 065c1ae206bec7f9dcdd394f5fe06ab8e4005655 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 07 Jun 2010 09:12:48 +0000
Subject: [PATCH] Fix issue #2748. This patch changes the place where messages are logged to ensure correct ordering: - Request handler now logs the connect messages before registering the read interest. - Worker threads logs the response messages before sending it to the client.

---
 opends/src/server/org/opends/server/core/AddOperationBasis.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/AddOperationBasis.java b/opends/src/server/org/opends/server/core/AddOperationBasis.java
index b3ed353..39bc471 100644
--- a/opends/src/server/org/opends/server/core/AddOperationBasis.java
+++ b/opends/src/server/org/opends/server/core/AddOperationBasis.java
@@ -782,6 +782,9 @@
       // Stop the processing timer.
       setProcessingStopTime();
 
+      // Log the add response message.
+      logAddResponse(this);
+
       if(cancelRequest == null || cancelResult == null ||
           cancelResult.getResultCode() != ResultCode.CANCELED ||
           cancelRequest.notifyOriginalRequestor() ||
@@ -791,9 +794,6 @@
       }
 
 
-      // Log the add response message.
-      logAddResponse(this);
-
       // Invoke the post-response callbacks.
       if (workflowExecuted) {
         invokePostResponseCallbacks();

--
Gitblit v1.10.0