Skip to content
Snippets Groups Projects
Commit 492bb026 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix thread handling and error printing

parent b1868895
Branches
Tags
No related merge requests found
......@@ -15,5 +15,5 @@
void bdb_errcall( const char *pfx, char * msg )
{
Debug( LDAP_DEBUG_ANY, "bdb(%s): %s", pfx, msg, 0 );
Debug( LDAP_DEBUG_ANY, "bdb(%s): %s\n", pfx, msg, 0 );
}
......@@ -115,11 +115,7 @@ bdb_db_open( BackendDB *be )
}
flags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN |
DB_CREATE | DB_RECOVER;
#ifndef NO_THREADS
flags |= DB_THREAD;
#endif
DB_THREAD | DB_CREATE | DB_RECOVER;
bdb->bi_dbenv->set_errpfx( bdb->bi_dbenv, be->be_suffix[0] );
bdb->bi_dbenv->set_errcall( bdb->bi_dbenv, bdb_errcall );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment