Commit 3d1a0bb1 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#7741 Fix entryDN index lookup

DN notfound is authoritative, don't ignore the result
parent ef90999f
...@@ -728,6 +728,10 @@ equality_candidates( ...@@ -728,6 +728,10 @@ equality_candidates(
if ( ei ) { if ( ei ) {
bdb_cache_entryinfo_unlock( ei ); bdb_cache_entryinfo_unlock( ei );
} }
if ( rc == DB_NOTFOUND ) {
BDB_IDL_ZERO( ids );
rc = 0;
}
return rc; return rc;
} }
......
...@@ -696,6 +696,10 @@ equality_candidates( ...@@ -696,6 +696,10 @@ equality_candidates(
ids[0] = 1; ids[0] = 1;
ids[1] = id; ids[1] = id;
} }
if ( rc == MDB_NOTFOUND ) {
MDB_IDL_ZERO( ids );
rc = 0;
}
return rc; return rc;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment