-static int
-dn_equality_candidate(
- Operation *op,
- DB_TXN *rtxn,
- struct berval *ndn,
- ID *ids )
-{
- struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
- EntryInfo ei = { 0 };
- DB_LOCK lock;
- int rc;
-
- lock.mode = DB_LOCK_NG;
- rc = bdb_dn2id( op, ndn, &ei, rtxn, &lock );
- if ( rc == 0 ) {
- BDB_IDL_RANGE( ids, ei.bei_id, ei.bei_id );
- bdb_cache_entry_db_unlock( bdb, &lock );
- }
-
- return rc;
-}
-