[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: substring searches very broken HELP HELP URGENT :-( (ITS#402)



On Thu, Dec 16, 1999 at 05:28:53PM +0000, ahu@casema.net wrote:

(I'm very sorry for flooding the list.. things aren't pretty out here and I
just hope that once I give people enough information, somebody's going to
say 'Ah!')

> => index_read( "maildrop" "*" "2-1" )
> => ldbm_cache_open( "/var/ldap2/maildrop.gdbm", 2, 600 )
> <= ldbm_cache_open (cache 3)
> <= idl_fetch 3659 ids (3659 max)
> <= index_read 3659 candidates
> <= substring_comp_candidates 0
> idl_free: called with NULL pointer
> <= filter_candidates 0
> <= list_candidates 0
> <= filter_candidates 0
> send_ldap_result 0::

When performing a search just on *2-1*, we get this:

=> index_read( "maildrop" "*" "2-1" )
=> ldbm_cache_open( "/var/ldap2/maildrop.gdbm", 2, 600 )
ldbm_cache_open (blksize 8192) (maxids 2046) (maxindirect 2)
<= ldbm_cache_open (opened 3)
<= idl_fetch 3659 ids (3659 max)
<= index_read 3659 candidates
<= substring_comp_candidates 3659
<= substring_candidates 3659
<= filter_candidates 3659
<= list_candidates 3659
<= filter_candidates 3659
=> id2entry_r( 5 )
=> ldbm_cache_open( "/var/ldap2/id2entry.gdbm", 2, 600 )
<= ldbm_cache_open (cache 1)
=> str2entry
<= str2entry 0x605c8
entry_rdwr_rlock: ID: 5
<= id2entry_r( 5 ) (disk)
=> test_filter
    SUBSTRINGS
begin test_substring_filter

And now the funny part. It only outputs 2711 entries, instead of 3659 it
should. 

Regards,

bert hubert.

-- 
    +---------------+  |              http://www.rent-a-nerd.nl
    | nerd for hire |  |                  
    +---------------+  |                     - U N I X -
            |          |          Inspice et cautus eris - D11T'95