mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 03:44:58 -05:00
Append tweak: must init mdb->mi_nextid
Otherwise duplicate entries aren't detected
This commit is contained in:
parent
c453a236fc
commit
2265d2bac8
1 changed files with 4 additions and 0 deletions
|
|
@ -619,6 +619,10 @@ ID mdb_tool_entry_put(
|
|||
text->bv_val, 0, 0 );
|
||||
return NOID;
|
||||
}
|
||||
if ( !mdb->mi_nextid ) {
|
||||
ID dummy;
|
||||
mdb_next_id( be, idcursor, &dummy );
|
||||
}
|
||||
rc = mdb_cursor_open( txn, mdb->mi_dn2id, &mcp );
|
||||
if( rc != 0 ) {
|
||||
snprintf( text->bv_val, text->bv_len,
|
||||
|
|
|
|||
Loading…
Reference in a new issue