mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Stop reducing number of substring candiadates when there is only two or
less left. Based upon suggestion made by bert hubert <ahu@casema.net>
This commit is contained in:
parent
7c28aa058c
commit
3eef87beeb
@ -361,6 +361,14 @@ substring_comp_candidates(
|
||||
if( idl == NULL ) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* if we're down to two (or less) matches, stop searching */
|
||||
if( ID_BLOCK_NIDS(idl) < 3 ) {
|
||||
Debug( LDAP_DEBUG_TRACE, "substring_comp_candidates: "
|
||||
"down to a %ld matches, stopped search\n",
|
||||
(long) ID_BLOCK_NIDS(idl), 0, 0 );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "<= substring_comp_candidates %ld\n",
|
||||
|
@ -365,6 +365,14 @@ substring_comp_candidates(
|
||||
if( idl == NULL ) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* if we're down to two (or less) matches, stop searching */
|
||||
if( ID_BLOCK_NIDS(idl) < 3 ) {
|
||||
Debug( LDAP_DEBUG_TRACE, "substring_comp_candiates: "
|
||||
"down to a %ld matches, stopped search\n",
|
||||
(long) ID_BLOCK_NIDS(idl), 0, 0 );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "<= substring_comp_candidates %ld\n",
|
||||
|
Loading…
Reference in New Issue
Block a user