mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Add error reporting to db check
This commit is contained in:
parent
08de32f87a
commit
43d5dc2e88
@ -346,7 +346,10 @@ main()
|
||||
|
||||
rc = db_env_create( &env, 0 );
|
||||
|
||||
if( rc ) return rc;
|
||||
if( rc ) {
|
||||
printf("BerkeleyDB: %s\n", db_strerror(rc) );
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifdef DB_CDB_ALLDB
|
||||
rc = env->set_flags( env, DB_CDB_ALLDB, 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user