From: Hallvard Furuseth Date: Fri, 17 May 2013 17:31:17 +0000 (+0200) Subject: ITS#7589 mdb_cursor_put(): Update ovpage nodesize. X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~36^2~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cdd9dffddf66c730a35f48db2bb02d8bb3e5731;p=openldap ITS#7589 mdb_cursor_put(): Update ovpage nodesize. Update the nodesize when overwriting an overflow page. As before, do not attempt to shrink the page. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 8415ccb26c..2c715ec74f 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5199,9 +5199,10 @@ current: /* Is the ov page writable and large enough? */ if ((omp->mp_flags & P_DIRTY) && ovpages >= dpages) { /* yes, overwrite it. Note in this case we don't - * bother to try shrinking the node if the new data + * bother to try shrinking the page if the new data * is smaller than the overflow threshold. */ + SETDSZ(leaf, data->mv_size); if (F_ISSET(flags, MDB_RESERVE)) data->mv_data = METADATA(omp); else