]> git.sur5r.net Git - openldap/commitdiff
Fix thread handling and error printing
authorKurt Zeilenga <kurt@openldap.org>
Sun, 1 Oct 2000 19:21:07 +0000 (19:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 1 Oct 2000 19:21:07 +0000 (19:21 +0000)
servers/slapd/back-bdb/error.c
servers/slapd/back-bdb/init.c

index 9e126da605baa133621bdd1b05daa70c50476840..00f528c97d20fb09c4e5608a9ab3127b20e64341 100644 (file)
@@ -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 );
 }
index eec64e86e233da3b223775d734af4fb5b473f32d..ac46b03a80453d526373a13833f8bb78407cedbc 100644 (file)
@@ -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 );