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

neil_a_wilson
09.11.2007 703ba4ae84193463f67aaf742dcf6dc15856cf65
Update the add operation code in order to reverse the order in which the locks
for the target entry and its parent are released. This fixes a problem in
which deadlocks can occur if a task entry is added and then the client
repeatedly retrieves the entry to keep up to date on the status of the task.

OpenDS Issue Number: 1137
1 files modified
10 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/core/AddOperation.java 10 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/AddOperation.java
@@ -2049,16 +2049,16 @@
      }
      finally
      {
        if (parentLock != null)
        {
          LockManager.unlock(parentDN, parentLock);
        }
        if (entryLock != null)
        {
          LockManager.unlock(entryDN, entryLock);
        }
        if (parentLock != null)
        {
          LockManager.unlock(parentDN, parentLock);
        }
        for (SynchronizationProvider provider :
             DirectoryServer.getSynchronizationProviders())