]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/dn2id.c
silence warning
[openldap] / servers / slapd / back-bdb / dn2id.c
index 56f1bc6260343d0d3a0f699b5bbf91d577692291..6ab0a037808959893e4b670b0336bab25cfce9be 100644 (file)
@@ -383,7 +383,6 @@ bdb_dn2id_children(
        ((char *)key.data)[0] = DN_ONE_PREFIX;
        AC_MEMCPY( &((char *)key.data)[1], e->e_nname.bv_val, key.size - 1 );
 
-#ifdef SLAP_IDL_CACHE
        if ( bdb->bi_idl_cache_size ) {
                rc = bdb_idl_cache_get( bdb, db, &key, NULL );
                if ( rc != LDAP_NO_SUCH_OBJECT ) {
@@ -391,7 +390,6 @@ bdb_dn2id_children(
                        return rc;
                }
        }
-#endif
        /* we actually could do a empty get... */
        DBTzero( &data );
        data.data = &id;
@@ -641,11 +639,9 @@ hdb_dn2id_add(
                db->put( db, txn, &key, &data, DB_NODUPDATA );
        }
 
-#ifdef SLAP_IDL_CACHE
        if ( bdb->bi_idl_cache_size ) {
                bdb_idl_cache_del( bdb, db, &key );
        }
-#endif
        data.data = d;
        data.size = sizeof(diskNode) + rlen + nrlen;
        data.flags = DB_DBT_USERMEM;
@@ -691,11 +687,9 @@ hdb_dn2id_delete(
        data.dlen = data.size;
        data.flags = DB_DBT_USERMEM | DB_DBT_PARTIAL;
 
-#ifdef SLAP_IDL_CACHE
        if ( bdb->bi_idl_cache_size ) {
                bdb_idl_cache_del( bdb, db, &key );
        }
-#endif
        rc = db->cursor( db, txn, &cursor, bdb->bi_db_opflags );
        if ( rc ) return rc;
 
@@ -862,14 +856,12 @@ hdb_dn2id_children(
        key.data = &e->e_id;
        key.flags = DB_DBT_USERMEM;
 
-#ifdef SLAP_IDL_CACHE
        if ( bdb->bi_idl_cache_size ) {
                rc = bdb_idl_cache_get( bdb, db, &key, NULL );
                if ( rc != LDAP_NO_SUCH_OBJECT ) {
                        return rc;
                }
        }
-#endif
        DBTzero(&data);
        data.data = &d;
        data.ulen = sizeof(d);
@@ -937,7 +929,6 @@ hdb_dn2idl_internal(
        struct dn2id_cookie *cx
 )
 {
-#ifdef SLAP_IDL_CACHE
        if ( cx->bdb->bi_idl_cache_size ) {
                cx->rc = bdb_idl_cache_get(cx->bdb, cx->db, &cx->key, cx->tmp);
                if ( cx->rc == DB_NOTFOUND ) {
@@ -947,7 +938,6 @@ hdb_dn2idl_internal(
                        goto gotit;
                }
        }
-#endif
        BDB_IDL_ZERO( cx->tmp );
 
        if ( !cx->ei ) {
@@ -1044,11 +1034,9 @@ hdb_dn2idl_internal(
        }
 
 saveit:
-#ifdef SLAP_IDL_CACHE
        if ( cx->bdb->bi_idl_cache_max_size ) {
                bdb_idl_cache_put( cx->bdb, cx->db, &cx->key, cx->tmp, cx->rc );
        }
-#endif
        ;
 gotit:
        if ( !BDB_IDL_IS_ZERO( cx->tmp )) {