[Date Prev][Date Next] [Chronological] [Thread] [Top]

conccurrent read access to COMMITTED entry ?



I am wondering whether or not it's possible to access
cache entries in CACHE_ENTRY_COMMITTED state concurrently.
For example, in line 690 of back-bdb/cache.c (or equivalent of
back-ldbm/cache.c),
can we change
if ( state != CACHE_ENTRY_READY ) {
to
if (state != CACHE_ENTRY_READY && state != CACHE_ENTRY_COMMITTED) {
?
Because the entry is already protected by read write lock,
it seems to me that concurrent reads to such entries may be permitted.
- Jong

------------------------
Jong Hyuk Choi
IBM Thomas J. Watson Research Center - Enterprise Linux Group
P. O. Box 218, Yorktown Heights, NY 10598
email: jongchoi@us.ibm.com
(phone) 914-945-3979    (fax) 914-945-4425   TL: 862-3979