]> git.sur5r.net Git - openldap/commitdiff
Partially revert 1.32; pcache must allow other callbacks to see its results
authorHoward Chu <hyc@openldap.org>
Tue, 16 Jun 2009 04:33:59 +0000 (04:33 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 16 Jun 2009 04:33:59 +0000 (04:33 +0000)
servers/slapd/overlays/pcache.c

index d91b6f327ccd5be368d8bb143034699d7ab84e9a..bff016e920db921fe52c2ffecc9117d21773da78 100644 (file)
@@ -2399,8 +2399,6 @@ pcache_op_search(
        op->o_tmpfree( tempstr.bv_val, op->o_tmpmemctx );
 
        if (answerable) {
-               /* Need to clear the callbacks of the original operation,
-                * in case there are other overlays */
                BackendDB       *save_bd = op->o_bd;
                slap_callback   *save_cb = op->o_callback;
 
@@ -2413,7 +2411,6 @@ pcache_op_search(
                        send_ldap_result( op, rs );
                } else {
                        op->o_bd = &cm->db;
-                       op->o_callback = NULL;
                        i = cm->db.bd_info->bi_op_search( op, rs );
                }
                ldap_pvt_thread_rdwr_runlock(&answerable->rwlock);