From 3e47e825fd61e1bff001c01f40d70263c89ffabd Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 14 Sep 2012 12:53:47 -0700 Subject: [PATCH] ITS#7391 more for ab04c50a32275e216b82edaeeed50208cf49336b --- servers/slapd/back-mdb/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-mdb/init.c b/servers/slapd/back-mdb/init.c index 41fc4068bb..b757700505 100644 --- a/servers/slapd/back-mdb/init.c +++ b/servers/slapd/back-mdb/init.c @@ -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. " -- 2.39.5