From: Howard Chu Date: Thu, 4 Jan 2007 10:56:18 +0000 (+0000) Subject: Fix HDB - don't use IDL cache when it's not configured X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~263 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57fa57b1d1d07d4c58b9212160337c109ab17683;p=openldap Fix HDB - don't use IDL cache when it's not configured --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index a1670944ba..c4f7cfac5e 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -1122,7 +1122,8 @@ hdb_dn2idl( cx.key.size = sizeof(ID)+1; *ptr = cx.prefix; cx.id = e->e_id; - bdb_idl_cache_put( cx.bdb, cx.db, &cx.key, cx.ids, cx.rc ); + if ( cx.bdb->bi_idl_cache_max_size ) + bdb_idl_cache_put( cx.bdb, cx.db, &cx.key, cx.ids, cx.rc ); } if ( cx.rc == DB_NOTFOUND )