Skip to content
Snippets Groups Projects
Commit bb38c6fc authored by Howard Chu's avatar Howard Chu
Browse files

More for ITS#5262, -q fixes from HEAD

parent 784d25a7
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,9 @@ bdb_dn2id_lock( struct bdb_info *bdb, struct berval *dn,
DBT lockobj;
int db_rw;
if (!locker)
return 0;
if (rw)
db_rw = DB_LOCK_WRITE;
else
......
......@@ -312,7 +312,7 @@ static int bdb_tool_next_id(
return 0;
}
rc = bdb_cache_find_ndn( op, TXN_ID( tid ), &ndn, &ei );
rc = bdb_cache_find_ndn( op, tid ? TXN_ID( tid ) : 0, &ndn, &ei );
if ( ei ) bdb_cache_entryinfo_unlock( ei );
if ( rc == DB_NOTFOUND ) {
if ( !be_issuffix( op->o_bd, &ndn ) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment