-
- Downloads
Fix dbcache/entry lock deadlock. If dbcache lock is held, it's
okay to read and write LDBM specific fields (state, refcnt, LRU. The id field, though is read-only once set. cache_find_entry_dn2id(), hence, does not require any entry locks. cache_find_entry_id() must do a entry_rdwr_trylock() and back off if busy. Add new rdwr lock code with trylock() functionality. Implement entry_rdwr_trylock().
Showing
- include/ldap_pvt_thread.h 22 additions, 10 deletionsinclude/ldap_pvt_thread.h
- libraries/libldap_r/rdwr.c 160 additions, 62 deletionslibraries/libldap_r/rdwr.c
- servers/slapd/back-ldbm/cache.c 37 additions, 54 deletionsservers/slapd/back-ldbm/cache.c
- servers/slapd/back-ldbm/id2entry.c 2 additions, 7 deletionsservers/slapd/back-ldbm/id2entry.c
- servers/slapd/entry.c 24 additions, 3 deletionsservers/slapd/entry.c
Please register or sign in to comment