]> git.sur5r.net Git - openldap/commitdiff
Better fix for prev commit
authorHoward Chu <hyc@openldap.org>
Tue, 16 Jun 2009 05:26:29 +0000 (05:26 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 16 Jun 2009 05:26:29 +0000 (05:26 +0000)
servers/slapd/overlays/pcache.c

index bff016e920db921fe52c2ffecc9117d21773da78..80a5d74028e716342ccb375e56d0b8a492e3e529 100644 (file)
@@ -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);