From 261d2420f49c63f2a79d1e24d5887c0d4ef2b618 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 20 Mar 2008 00:31:42 +0000 Subject: [PATCH] ITS#5434 search thru other overlays when present --- servers/slapd/overlays/syncprov.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index af8ad727ec..0bc2d38063 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -696,7 +696,10 @@ again: break; } - fop.o_bd->bd_info = on->on_info->oi_orig; + if ( on->on_next ) + fop.o_bd->bd_info = (BackendInfo *)on->on_next; + else + fop.o_bd->bd_info = on->on_info->oi_orig; fop.o_bd->be_search( &fop, &frs ); fop.o_bd->bd_info = (BackendInfo *)on; @@ -1528,7 +1531,10 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl, fop.ors_filter = ⁡ cb.sc_response = playlog_cb; - fop.o_bd->bd_info = on->on_info->oi_orig; + if ( on->on_next ) + fop.o_bd->bd_info = (BackendInfo *)on->on_next; + else + fop.o_bd->bd_info = on->on_info->oi_orig; for ( i=ndel; i