mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#7793/7828
Fix md_entries count, test for insert on md_entries increment
This commit is contained in:
parent
6948f9dace
commit
13d6d59c51
1 changed files with 1 additions and 2 deletions
|
|
@ -6157,7 +6157,6 @@ current:
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
mdb_node_del(mc, 0);
|
mdb_node_del(mc, 0);
|
||||||
mc->mc_db->md_entries--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rdata = data;
|
rdata = data;
|
||||||
|
|
@ -6250,7 +6249,7 @@ put_sub:
|
||||||
/* sub-writes might have failed so check rc again.
|
/* sub-writes might have failed so check rc again.
|
||||||
* Don't increment count if we just replaced an existing item.
|
* Don't increment count if we just replaced an existing item.
|
||||||
*/
|
*/
|
||||||
if (!rc && !(flags & MDB_CURRENT))
|
if (!rc && insert)
|
||||||
mc->mc_db->md_entries++;
|
mc->mc_db->md_entries++;
|
||||||
if (flags & MDB_MULTIPLE) {
|
if (flags & MDB_MULTIPLE) {
|
||||||
if (!rc) {
|
if (!rc) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue