From 68a3491d7d8a3c0a8c84b57e625de59039d68bca Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 13 Apr 2007 19:47:30 +0000
Subject: [PATCH] Re-implement the server lock manager using a simpler approach that eliminates a potential for deadlocks and appears to provide better performance.

---
 opends/src/server/org/opends/server/util/ServerConstants.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index 8484a2f..bda8605 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -2299,6 +2299,28 @@
 
 
   /**
+   * The name of the system property that can be used to specify the concurrency
+   * level for the lock table.  This should be set to the maximum number of
+   * threads that could attempt to interact with the lock table at any given
+   * time.
+   */
+  public static final String PROPERTY_LOCK_MANAGER_CONCURRENCY_LEVEL =
+       "org.opends.server.LockManagerConcurrencyLevel";
+
+
+
+  /**
+   * The name of the system property that can be used to specify the initial
+   * table size for the server lock table.  This can be used to ensure that the
+   * lock table has the appropriate size for the expected number of locks that
+   * will be held at any given time.
+   */
+  public static final String PROPERTY_LOCK_MANAGER_TABLE_SIZE =
+       "org.opends.server.LockManagerTableSize";
+
+
+
+  /**
    * The name of the system property that can be used to determine whether the
    * Directory Server is starting up for the purpose of running the unit tests.
    */

--
Gitblit v1.10.0