From 05dfa5fee15b191c3ee1afae0010b70733b1a35b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 25 Jun 2007 15:51:57 +0000
Subject: [PATCH] Update the pre-parse and pre-operation plugin results to add the ability to skip core processing without skipping post-operation plugins. Also, make sure that post-response plugins are always invoked for all operations that get far enough in their processing to have called the pre-parse plugins.
---
opends/src/server/org/opends/server/core/AddOperation.java | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/AddOperation.java b/opends/src/server/org/opends/server/core/AddOperation.java
index 96c516a..8b265d1 100644
--- a/opends/src/server/org/opends/server/core/AddOperation.java
+++ b/opends/src/server/org/opends/server/core/AddOperation.java
@@ -800,6 +800,7 @@
logAddRequest(this);
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
else if (preParseResult.sendResponseImmediately())
@@ -808,6 +809,11 @@
logAddRequest(this);
break addProcessing;
}
+ else if (preParseResult.skipCoreProcessing())
+ {
+ skipPostOperation = false;
+ break addProcessing;
+ }
// Log the add request message.
@@ -820,6 +826,7 @@
indicateCancelled(cancelRequest);
processingStopTime = System.currentTimeMillis();
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
@@ -958,6 +965,7 @@
indicateCancelled(cancelRequest);
processingStopTime = System.currentTimeMillis();
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
@@ -1027,6 +1035,7 @@
indicateCancelled(cancelRequest);
processingStopTime = System.currentTimeMillis();
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
@@ -1936,6 +1945,7 @@
indicateCancelled(cancelRequest);
processingStopTime = System.currentTimeMillis();
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
@@ -1958,6 +1968,7 @@
processingStopTime = System.currentTimeMillis();
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
else if (preOpResult.sendResponseImmediately())
@@ -1965,6 +1976,11 @@
skipPostOperation = true;
break addProcessing;
}
+ else if (preOpResult.skipCoreProcessing())
+ {
+ skipPostOperation = false;
+ break addProcessing;
+ }
}
@@ -1974,6 +1990,7 @@
indicateCancelled(cancelRequest);
processingStopTime = System.currentTimeMillis();
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
@@ -2223,6 +2240,7 @@
processingStopTime = System.currentTimeMillis();
logAddResponse(this);
+ pluginConfigManager.invokePostResponseAddPlugins(this);
return;
}
}
--
Gitblit v1.10.0