]> git.sur5r.net Git - openldap/commitdiff
ITS#3267 add a comment
authorHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 00:56:30 +0000 (00:56 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 00:56:30 +0000 (00:56 +0000)
servers/slapd/back-bdb/tools.c

index 65471722e463136cef99a4f2a0b9725c4842d197..530b0f3dee32771cd8e0fd15736a40b299ab81e0 100644 (file)
@@ -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;