From: Howard Chu Date: Fri, 26 Aug 2011 20:37:02 +0000 (-0700) Subject: Fix update of big data items X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~75 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01b9fc59fb2b8b4576ed43445b16b531d0b7b2ce;p=openldap Fix update of big data items --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index ad4e903a2e..8937a8e9fd 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -3469,7 +3469,8 @@ mdb_put0(MDB_txn *txn, MDB_dbi dbi, goto put_sub; } /* same size, just replace it */ - if (NODEDSZ(leaf) == data->mv_size) { + if (!F_ISSET(leaf->mn_flags, F_BIGDATA) && + NODEDSZ(leaf) == data->mv_size) { memcpy(NODEDATA(leaf), data->mv_data, data->mv_size); goto done; }