From: Howard Chu Date: Tue, 16 Jun 2009 05:26:29 +0000 (+0000) Subject: Better fix for prev commit X-Git-Tag: ACLCHECK_0~493 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc0418db8f9abcb88bd4672c8b465d7374d82f02;p=openldap Better fix for prev commit --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index bff016e920..80a5d74028 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -2411,6 +2411,12 @@ pcache_op_search( send_ldap_result( op, rs ); } else { op->o_bd = &cm->db; + if ( cm->response_cb == PCACHE_RESPONSE_CB_TAIL ) { + /* The cached entry was already processed by any + * other overlays, so don't let it get processed again. + */ + op->o_callback = NULL; + } i = cm->db.bd_info->bi_op_search( op, rs ); } ldap_pvt_thread_rdwr_runlock(&answerable->rwlock);