]> git.sur5r.net Git - openldap/commitdiff
ITS#7589 Fix typo in prev commit
authorHoward Chu <hyc@symas.com>
Sat, 12 Oct 2013 20:31:09 +0000 (13:31 -0700)
committerHoward Chu <hyc@symas.com>
Sat, 12 Oct 2013 20:31:09 +0000 (13:31 -0700)
libraries/liblmdb/mdb.c

index deb2d7c9d5f83a6bcc524e14f5e394712bd9092d..e33b383af67ca92ae0da5895c49af67e3851930b 100644 (file)
@@ -7545,7 +7545,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
                                                node = NULL;
                                        } else {
                                                node = (MDB_node *)((char *)mp + copy->mp_ptrs[i]);
-                                               psize = NODESIZE + NODEKSZ(node) + sizeof(indx_t);
+                                               psize += NODESIZE + NODEKSZ(node) + sizeof(indx_t);
                                                if (IS_LEAF(mp)) {
                                                        if (F_ISSET(node->mn_flags, F_BIGDATA))
                                                                psize += sizeof(pgno_t);