mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#3979 restore old (RE21, RE22) search order
This commit is contained in:
parent
3673cceb6c
commit
f1e05336f1
@ -909,16 +909,9 @@ glue_sub_add( BackendDB *be, int advert, int online )
|
|||||||
SLAP_DBFLAGS( be ) |= SLAP_DBFLAG_GLUE_ADVERTISE;
|
SLAP_DBFLAGS( be ) |= SLAP_DBFLAG_GLUE_ADVERTISE;
|
||||||
|
|
||||||
ga = ch_malloc( sizeof( glue_Addrec ));
|
ga = ch_malloc( sizeof( glue_Addrec ));
|
||||||
ga->ga_next = NULL;
|
ga->ga_next = ga_list;
|
||||||
ga->ga_be = be;
|
ga->ga_be = be;
|
||||||
if ( ga_list ) {
|
ga_list = ga;
|
||||||
glue_Addrec *g2 = ga_list;
|
|
||||||
|
|
||||||
for ( ; g2 && g2->ga_next; g2=g2->ga_next );
|
|
||||||
g2->ga_next = ga;
|
|
||||||
} else {
|
|
||||||
ga_list = ga;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( online )
|
if ( online )
|
||||||
rc = glue_sub_attach();
|
rc = glue_sub_attach();
|
||||||
|
Loading…
Reference in New Issue
Block a user