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

abobrov
12.03.2007 281a429e6f526e356353103ae3b60d45d75791c9
refs
author abobrov <abobrov@localhost>
Thursday, July 12, 2007 01:03 +0200
committer abobrov <abobrov@localhost>
Thursday, July 12, 2007 01:03 +0200
commit281a429e6f526e356353103ae3b60d45d75791c9
tree 9e8f854aa4b0a3c5deefa8f0d3c03307010d8000 tree | zip | gz
parent 785fcca7ef16dd93aaa3ca22e17a812ab6ac250a 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
opends/src/server/org/opends/server/api/EntryCache.java 221 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/extensions/DefaultEntryCache.java 18 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/extensions/FIFOEntryCache.java 235 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/extensions/FileSystemEntryCache.java 240 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/extensions/SoftReferenceEntryCache.java 243 ●●●●● diff | view | raw | blame | history