Import add.c cache_set_state deadlock fix.

This commit is contained in:
Kurt Zeilenga 1999-01-26 05:24:18 +00:00
parent 39f93be77b
commit bf02252059

View File

@ -221,8 +221,6 @@ ldbm_back_add(
rc = 0; rc = 0;
return_results:; return_results:;
cache_set_state( &li->li_cache, e, 0 );
if (p != NULL) { if (p != NULL) {
/* free parent and writer lock */ /* free parent and writer lock */
cache_return_entry_w( &li->li_cache, p ); cache_return_entry_w( &li->li_cache, p );
@ -233,6 +231,8 @@ return_results:;
pthread_mutex_unlock(&li->li_root_mutex); pthread_mutex_unlock(&li->li_root_mutex);
} }
cache_set_state( &li->li_cache, e, 0 );
/* free entry and writer lock */ /* free entry and writer lock */
cache_return_entry_w( &li->li_cache, e ); cache_return_entry_w( &li->li_cache, e );