mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
12.03.2007 47be44124da7f6ad42bed03a24701ca07c00918d
opends/src/server/org/opends/server/extensions/ConfigFileHandler.java
@@ -53,7 +53,6 @@
import java.util.zip.ZipOutputStream;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.locks.ReentrantLock;
import javax.crypto.Mac;
import org.opends.messages.Message;
@@ -155,7 +154,7 @@
  // The write lock used to ensure that only one thread can apply a
  // configuration update at any given time.
  private ReentrantLock configLock;
  private Object configLock;
  // The path to the configuration file.
  private String configFile;
@@ -196,7 +195,7 @@
         throws InitializationException
  {
    // Initialize the config lock.
    configLock = new ReentrantLock();
    configLock = new Object();
    // Determine whether we should try to start using the last known good
@@ -1276,9 +1275,7 @@
    // Grab the config lock to ensure that only one config update may be in
    // progress at any given time.
    configLock.lock();
    try
    synchronized (configLock)
    {
      // Make sure that the target DN does not already exist.  If it does, then
      // fail.
@@ -1414,10 +1411,6 @@
        throw new DirectoryException(resultCode, message);
      }
    }
    finally
    {
      configLock.unlock();
    }
  }
@@ -1456,9 +1449,7 @@
    // Grab the config lock to ensure that only one config update may be in
    // progress at any given time.
    configLock.lock();
    try
    synchronized (configLock)
    {
      // Get the target entry.  If it does not exist, then fail.
      ConfigEntry entry = configEntries.get(entryDN);
@@ -1590,10 +1581,6 @@
        throw new DirectoryException(resultCode, message);
      }
    }
    finally
    {
      configLock.unlock();
    }
  }
@@ -1656,10 +1643,7 @@
    // Grab the config lock to ensure that only one config update may be in
    // progress at any given time.
    configLock.lock();
    try
    synchronized (configLock)
    {
      // Get the DN of the target entry for future reference.
      DN entryDN = e.getDN();
@@ -1773,10 +1757,6 @@
        throw new DirectoryException(resultCode, message);
      }
    }
    finally
    {
      configLock.unlock();
    }
  }