From ad4ba42524c44c5ea644aeb67b9c4b8e8f29234c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 9 Sep 2006 00:00:44 +0000 Subject: [PATCH] support "subordinate" scope --- servers/slapd/back-monitor/search.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-monitor/search.c b/servers/slapd/back-monitor/search.c index 3f30f489b5..4b4b9bef7c 100644 --- a/servers/slapd/back-monitor/search.c +++ b/servers/slapd/back-monitor/search.c @@ -35,8 +35,7 @@ monitor_send_children( Operation *op, SlapReply *rs, Entry *e_parent, - int sub -) + int sub ) { monitor_info_t *mi = ( monitor_info_t * )op->o_bd->be_private; Entry *e, @@ -228,7 +227,9 @@ monitor_back_search( Operation *op, SlapReply *rs ) break; case LDAP_SCOPE_ONELEVEL: - rc = monitor_send_children( op, rs, e, 0 ); + case LDAP_SCOPE_SUBORDINATE: + rc = monitor_send_children( op, rs, e, + op->oq_search.rs_scope == LDAP_SCOPE_SUBORDINATE ); break; case LDAP_SCOPE_SUBTREE: -- 2.39.5