ITS#7391 more for ab04c50a32

This commit is contained in:
Howard Chu 2012-09-14 12:53:47 -07:00
parent 867134d4ca
commit 3e47e825fd

View File

@ -182,7 +182,7 @@ mdb_db_open( BackendDB *be, ConfigReply *cr )
goto fail;
}
rc = mdb_txn_begin( mdb->mi_dbenv, NULL, 0, &txn );
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. "