From fdeffe84e1b87a7c98bec356e658ffab379dcde5 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 26 Sep 2000 20:31:34 +0000 Subject: [PATCH] Add kludge to get working tests add/populate. --- servers/slapd/back-bdb/search.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5