mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Revert "Fix 6beaad52129da5353fd40c0ec48e6a78c4f71a2e"
This reverts commit 8eef7a4275
.
Previous commit was correct, duplicate keys should not appear here.
This commit is contained in:
parent
227329c8e1
commit
e43fa77eaa
@ -4968,8 +4968,8 @@ mdb_cursor_put(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
|||||||
if (rc > 0) {
|
if (rc > 0) {
|
||||||
rc = MDB_NOTFOUND;
|
rc = MDB_NOTFOUND;
|
||||||
mc->mc_ki[mc->mc_top]++;
|
mc->mc_ki[mc->mc_top]++;
|
||||||
} else if (rc < 0) {
|
} else {
|
||||||
/* new key is < last key */
|
/* new key is <= last key */
|
||||||
rc = MDB_KEYEXIST;
|
rc = MDB_KEYEXIST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user