From: Howard Chu Date: Thu, 6 Dec 2001 14:15:47 +0000 (+0000) Subject: Fix for BDB_IDL_MULTI to work. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~740 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=11b3c142e4d4b435fd9f84c35b81ae3a22cf7ae9;p=openldap Fix for BDB_IDL_MULTI to work. --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 3ed169445f..4812dd7ad3 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -372,14 +372,7 @@ bdb_dn2idl( ((char *)key.data)[0] = prefix; AC_MEMCPY( &((char *)key.data)[1], dn, key.size - 1 ); - /* store the ID */ - DBTzero( &data ); - data.data = ids; - data.ulen = BDB_IDL_UM_SIZEOF; - data.flags = DB_DBT_USERMEM; - - /* fetch it */ - rc = db->get( db, NULL, &key, &data, bdb->bi_db_opflags ); + rc = bdb_idl_fetch_key( be, db, NULL, &key, ids ); if( rc != 0 ) { Debug( LDAP_DEBUG_TRACE,