From fc0418db8f9abcb88bd4672c8b465d7374d82f02 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 16 Jun 2009 05:26:29 +0000 Subject: [PATCH] Better fix for prev commit --- servers/slapd/overlays/pcache.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5