]> git.sur5r.net Git - openldap/commitdiff
Fix update of big data items
authorHoward Chu <hyc@symas.com>
Fri, 26 Aug 2011 20:37:02 +0000 (13:37 -0700)
committerHoward Chu <hyc@symas.com>
Thu, 1 Sep 2011 23:31:10 +0000 (16:31 -0700)
libraries/libmdb/mdb.c

index ad4e903a2ea32c0f360009000281c1ff6827acd7..8937a8e9fd98f69eb2c34e9cbb58d9df3e6190ab 100644 (file)
@@ -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;
                        }