From: Kurt Zeilenga Date: Tue, 26 Sep 2000 20:31:34 +0000 (+0000) Subject: Add kludge to get working tests add/populate. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1880 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fdeffe84e1b87a7c98bec356e658ffab379dcde5;p=openldap Add kludge to get working tests add/populate. --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index d67a89d984..a4687be401 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -395,6 +395,8 @@ static ID idl_first( ID *ids, ID *cursor ) } if ( BDB_IS_ALLIDS( ids ) ) { + /* XXYYZ: quick hack for testing */ + ids[1] = 100; return *cursor; } @@ -411,7 +413,7 @@ static ID idl_first( ID *ids, ID *cursor ) static ID idl_next( ID *ids, ID *cursor ) { if ( BDB_IS_ALLIDS( ids ) ) { - if( ++(*cursor) < ids[1] ) { + if( ++(*cursor) <= ids[1] ) { return *cursor; } return NOID;