From: Howard Chu Date: Mon, 3 Oct 2005 03:12:32 +0000 (+0000) Subject: ITS#4027 select_backend should ignore manageDSAit when glue is in use. X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~330 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da1a1f9133ea404d67aae39e1d3e9e338bda0986;p=openldap ITS#4027 select_backend should ignore manageDSAit when glue is in use. --- 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; }