From a8dbfd322ac7c11ac5e338705d45160eb84cb455 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Jan 2004 04:09:52 +0000 Subject: [PATCH] Really fix ITS#2905 --- servers/slapd/back-bdb/tools.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 93231fefbc..e73f7c70db 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -265,9 +265,8 @@ static int bdb_tool_next_id( } else if ( !hole ) { unsigned i; - if ( e->e_id == NOID ) { - return DB_KEYEXIST; - } + e->e_id = ei->bei_id; + rc = DB_KEYEXIST; for ( i=0; ie_id ) { @@ -276,6 +275,7 @@ static int bdb_tool_next_id( for (j=i;j e->e_id ) { break; -- 2.39.5