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

abobrov
20.43.2007 715e7cc240a8519a3aaa27d074bd48e886ab10d9
- fix IllegalMonitorStateException/UnlockWhenNotOwner bug found by the unit tests.
1 files modified
4 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/extensions/FileSystemEntryCache.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/FileSystemEntryCache.java
@@ -733,9 +733,11 @@
      }
      return;
    } finally {
      if (cacheLock.isWriteLockedByCurrentThread()) {
      cacheWriteLock.unlock();
    }
  }
  }
  /**
   * {@inheritDoc}
@@ -766,9 +768,11 @@
      // We can't rule out the possibility of a conflict, so return false.
      return false;
    } finally {
      if (cacheLock.isWriteLockedByCurrentThread()) {
      cacheWriteLock.unlock();
    }
  }
  }
  /**
   * {@inheritDoc}