mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Revert previous commit, it breaks everything.
This commit is contained in:
parent
f0dff0fc9a
commit
dca809ff8d
@ -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 New Issue
Block a user