From: Howard Chu Date: Thu, 25 Nov 2004 07:03:43 +0000 (+0000) Subject: Revert previous commit, it breaks everything. X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~227 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dca809ff8da55bf8653d00271723933b4d7d5287;p=openldap Revert previous commit, it breaks everything. --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 505cfd4cfa..1e1453822d 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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;