Commit 771f70eb authored by Howard Chu's avatar Howard Chu
Browse files

Fix ITS#1994, Windows heap consistency

parent 40f3da36
......@@ -34,6 +34,9 @@ static struct bdbi_database {
struct berval bdb_uuid = { 0, NULL };
typedef void * db_malloc(size_t);
typedef void * db_realloc(void *, size_t);
static int
bdb_open( BackendInfo *bi )
{
......@@ -196,6 +199,9 @@ 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;
......
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