mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
change in the IDL conversion from a list to a range
This commit is contained in:
parent
202e516450
commit
db490b4cef
@ -447,10 +447,16 @@ bdb_idl_insert_key(
|
||||
if ( count >= BDB_IDL_DB_SIZE ) {
|
||||
/* No room, convert to a range */
|
||||
lo = tmp;
|
||||
hi = NOID;
|
||||
data.data = &hi;
|
||||
rc = cursor->c_get( cursor, key, &data, DB_LAST );
|
||||
rc = cursor->c_put( cursor, key, &data, DB_KEYLAST );
|
||||
if ( rc != 0 ) {
|
||||
err = "c_get last";
|
||||
err = "c_put NOID";
|
||||
goto fail;
|
||||
}
|
||||
rc = cursor->c_get( cursor, key, &data, DB_PREV );
|
||||
if ( rc != 0 ) {
|
||||
err = "c_get prev";
|
||||
goto fail;
|
||||
}
|
||||
if ( id < lo )
|
||||
|
Loading…
Reference in New Issue
Block a user