Fix previous commit

This commit is contained in:
Howard Chu 2003-03-27 03:27:48 +00:00
parent 4a1eb51d3e
commit ecd4296640

View file

@ -262,7 +262,7 @@ int bdb_entry_release(
boi = (struct bdb_op_info *)o->o_private;
}
/* lock is freed with txn */
if ( boi && boi->boi_txn ) {
if ( !boi || boi->boi_txn ) {
bdb_unlocked_cache_return_entry_rw( &bdb->bi_cache, e, rw );
} else {
bdb_cache_return_entry_rw( bdb->bi_dbenv, &bdb->bi_cache, e, rw, &boi->boi_lock );