mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
Revert previous commit, it breaks everything.
This commit is contained in:
parent
f0dff0fc9a
commit
dca809ff8d
1 changed files with 7 additions and 2 deletions
|
|
@ -724,9 +724,14 @@ bdb_idl_insert_key(
|
|||
}
|
||||
}
|
||||
if ( id < lo || id > hi ) {
|
||||
/* Replace the current lo/hi */
|
||||
/* Delete the current lo/hi */
|
||||
rc = cursor->c_del( cursor, 0 );
|
||||
if ( rc != 0 ) {
|
||||
err = "c_del";
|
||||
goto fail;
|
||||
}
|
||||
data.data = &id;
|
||||
rc = cursor->c_put( cursor, key, &data, DB_CURRENT );
|
||||
rc = cursor->c_put( cursor, key, &data, DB_KEYFIRST );
|
||||
if ( rc != 0 ) {
|
||||
err = "c_put lo/hi";
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Reference in a new issue