From: Howard Chu Date: Sat, 9 Apr 2005 00:56:30 +0000 (+0000) Subject: ITS#3267 add a comment X-Git-Tag: OPENLDAP_AC_BP~958 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dbb5d00908dfbb3c6352438c1f6979b34ab9d18a;p=openldap ITS#3267 add a comment --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 65471722e4..530b0f3dee 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -235,6 +235,10 @@ static int bdb_tool_next_id( if ( rc ) { return rc; } + /* If parent didn't exist, it was created just now + * and its ID is now in e->e_id. Make sure the current + * entry gets added under the new parent ID. + */ if ( eid != e->e_id ) { eidummy.bei_id = e->e_id; ei = &eidummy;