mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
Add missing mdb_strerror calls to debug msgs
This commit is contained in:
parent
01f698bce9
commit
b9abbdf623
1 changed files with 4 additions and 4 deletions
|
|
@ -176,18 +176,18 @@ mdb_db_open( BackendDB *be, ConfigReply *cr )
|
|||
|
||||
if ( rc ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened, err %d. "
|
||||
LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened: %s (%d). "
|
||||
"Restore from backup!\n",
|
||||
be->be_suffix[0].bv_val, rc, 0 );
|
||||
be->be_suffix[0].bv_val, mdb_strerror(rc), rc );
|
||||
goto fail;
|
||||
}
|
||||
|
||||
rc = mdb_txn_begin( mdb->mi_dbenv, NULL, flags & MDB_RDONLY, &txn );
|
||||
if ( rc ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened, err %d. "
|
||||
LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened: %s (%d). "
|
||||
"Restore from backup!\n",
|
||||
be->be_suffix[0].bv_val, rc, 0 );
|
||||
be->be_suffix[0].bv_val, mdb_strerror(rc), rc );
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue