From da1a1f9133ea404d67aae39e1d3e9e338bda0986 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 3 Oct 2005 03:12:32 +0000 Subject: [PATCH] ITS#4027 select_backend should ignore manageDSAit when glue is in use. --- servers/slapd/backend.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index f6f868a30d..77dcf4a422 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -614,7 +614,13 @@ select_backend( continue; } } else { - b2 = be; + /* If any parts of the tree are glued, use the first + * match regardless of manageDSAit. Otherwise use the + * last match. + */ + if( !( SLAP_DBFLAGS( be ) & ( SLAP_DBFLAG_GLUE_INSTANCE | + SLAP_DBFLAG_GLUE_SUBORDINATE ))) + b2 = be; } return b2; } -- 2.39.5