Commit 3fd4d041 authored by Howard Chu's avatar Howard Chu
Browse files

Release cache locker on db close

parent 214d3b26
......@@ -448,7 +448,7 @@ bdb_db_open( BackendDB *be )
return rc;
}
bdb->bi_dbenv->lock_id(bdb->bi_dbenv, &bdb->bi_cache.c_locker);
XLOCK_ID(bdb->bi_dbenv, &bdb->bi_cache.c_locker);
/* <insert> open (and create) index databases */
return 0;
......@@ -490,6 +490,8 @@ bdb_db_close( BackendDB *be )
ldap_pvt_thread_rdwr_wunlock ( &bdb->bi_idl_tree_rwlock );
}
XLOCK_ID_FREE(bdb->bi_dbenv, bdb->bi_cache.c_locker);
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment