From 9a0bd9c8c7e964df73cc7ddcb8750b1e54275598 Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Tue, 10 Jul 2007 16:50:42 +0000
Subject: [PATCH] Bug# 1462:server deadlock on subtree delete Fix: Introduce a batch parameter to create the additional transactions for a new batch.

---
 opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/JEBackendConfiguration.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/JEBackendConfiguration.xml b/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/JEBackendConfiguration.xml
index e6250ad..bce44f4 100644
--- a/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/JEBackendConfiguration.xml
+++ b/opendj-sdk/opends/src/admin/defn/org/opends/server/admin/std/JEBackendConfiguration.xml
@@ -469,6 +469,33 @@
       </ldap:attribute>
     </adm:profile>
   </adm:property>
+  <adm:property name="backend-subtree-delete-batch-size"
+    mandatory="false"
+    multi-valued="false">
+    <adm:synopsis>
+      Specifies the maximum number of entries that may be deleted from the
+      backend when using the subtree delete control within a single transaction.
+    </adm:synopsis>
+    <adm:description>
+      If a subtree delete operation targets a subtree with more than this
+      number of entries, then additional transactions are used to remove the
+      remaining entries in that subtree.
+    </adm:description>
+    <adm:default-behavior>
+      <adm:defined>
+        <adm:value>5000</adm:value>
+      </adm:defined>
+    </adm:default-behavior>
+    <adm:syntax>
+      <adm:integer  lower-limit="0" />
+    </adm:syntax>
+    <adm:profile name="ldap">
+      <ldap:attribute>
+        <ldap:oid>1.3.6.1.4.1.26027.1.1.381</ldap:oid>
+        <ldap:name>ds-cfg-backend-subtree-delete-batch-size</ldap:name>
+      </ldap:attribute>
+    </adm:profile>
+  </adm:property>
   <adm:property name="database-cache-percent"
     mandatory="false"
     multi-valued="false">

--
Gitblit v1.10.0