From a7a90609a9a8aa165e13578f6f9d915a31471889 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 28 Jun 2004 21:08:32 +0000 Subject: [PATCH] propagate search result (maybe this is not what bdb_psearch() is intended to do...) --- servers/slapd/back-bdb/search.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index de9c7b1772..75ab32b2d4 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -364,9 +364,13 @@ int bdb_search( Operation *op, SlapReply *rs ) int bdb_psearch( Operation *op, SlapReply *rs, Operation *sop, Entry *ps_e, int ps_type ) { + int rc; + sop->o_private = op->o_private; - bdb_do_search( op, rs, sop, ps_e, ps_type ); + rc = bdb_do_search( op, rs, sop, ps_e, ps_type ); sop->o_private = NULL; + + return rc; } /* For persistent searches, op is the currently executing operation, -- 2.39.5