Skip to content
Snippets Groups Projects
Commit 1263e40b authored by Howard Chu's avatar Howard Chu
Browse files

Set BDB's global allocators to ber_*, don't bother with the per-env setting.

parent ae2cd84d
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,10 @@ bdb_db_open( BackendDB *be )
be->be_suffix[0].bv_val, 0, 0 );
#endif
db_env_set_func_free( ber_memfree );
db_env_set_func_malloc( ber_memalloc );
db_env_set_func_realloc( ber_memrealloc );
/* we should check existance of dbenv_home and db_directory */
rc = db_env_create( &bdb->bi_dbenv, 0 );
......@@ -202,9 +206,6 @@ bdb_db_open( BackendDB *be )
return rc;
}
bdb->bi_dbenv->set_alloc( bdb->bi_dbenv, (db_malloc *)ber_memalloc,
(db_realloc *)ber_memrealloc, ber_memfree );
flags = DB_INIT_MPOOL | DB_THREAD | DB_CREATE
| DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment