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

abobrov
12.03.2007 9505f8e21780c6358aa2dd810abdf7cc3e4d5ad1
refs
author abobrov <abobrov@localhost>
Thursday, July 12, 2007 01:03 +0200
committer abobrov <abobrov@localhost>
Thursday, July 12, 2007 01:03 +0200
commit9505f8e21780c6358aa2dd810abdf7cc3e4d5ad1
tree 2ade86197779c842f75fec8f6f7f163149b25518 tree | zip | gz
parent cf3adfdb37b434f6cb76d24762174dba4c7f2caf view | diff
- [Issue 1588] consolidate cache entry locking code:
getEntry(lck) locking code logic is now consolidated in a single method
inside the EntryCache abstract class effectively moving it out of entry
cache implementing subclasses.

- [Issue 1589] entry cache implementations can lock and return stale entry:
Prevent stale entries by check [checking that given entry does indeed
exist in the cache], lock [acquiring a lock] and load [loading the entry].
5 files modified
957 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/api/EntryCache.java 221 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/DefaultEntryCache.java 18 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/FIFOEntryCache.java 235 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/FileSystemEntryCache.java 240 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/SoftReferenceEntryCache.java 243 ●●●●● diff | view | raw | blame | history