Commit 36437cf4 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7741 Fix entryDN index lookup

DN notfound is authoritative, don't ignore the result
parent 243bea00
......@@ -728,6 +728,10 @@ equality_candidates(
if ( ei ) {
bdb_cache_entryinfo_unlock( ei );
}
if ( rc == DB_NOTFOUND ) {
BDB_IDL_ZERO( ids );
rc = 0;
}
return rc;
}
......
......@@ -696,6 +696,10 @@ equality_candidates(
ids[0] = 1;
ids[1] = id;
}
if ( rc == MDB_NOTFOUND ) {
MDB_IDL_ZERO( ids );
rc = 0;
}
return rc;
}
......
Markdown is supported
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