Commit f724fd79 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

MDB_APPEND should only be used in tool mode

parent f05a7847
......@@ -190,11 +190,14 @@ mdb_dn2id_add(
rc = mdb_cursor_put( mcp, &key, &data, MDB_NODUPDATA );
if (rc == 0) {
int flag = MDB_NODUPDATA;
nid = e->e_id;
memcpy( ptr, &pid, sizeof( ID ));
d->nrdnlen[0] ^= 0x80;
rc = mdb_cursor_put( mcd, &key, &data, MDB_NODUPDATA|MDB_APPEND );
if (slapMode & SLAP_TOOL_MODE)
flag |= MDB_APPEND;
rc = mdb_cursor_put( mcd, &key, &data, flag );
}
fail:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment