]> git.sur5r.net Git - openldap/commitdiff
ITS#8699 more for cursor_del ITS#8622
authorHoward Chu <hyc@openldap.org>
Wed, 26 Jul 2017 20:37:40 +0000 (21:37 +0100)
committerHoward Chu <hyc@openldap.org>
Wed, 26 Jul 2017 20:37:40 +0000 (21:37 +0100)
Set C_DEL flag on reinit'd subcursor

libraries/liblmdb/mdb.c

index 970e1ef28e5eed3cbc9f44810a35984c9e535101..148dc45722b3f38dd532ee2645e9bf849413c3d7 100644 (file)
@@ -9312,8 +9312,10 @@ mdb_cursor_del0(MDB_cursor *mc)
                                                        if (m3->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED) {
                                                                if (!(node->mn_flags & F_SUBDATA))
                                                                        m3->mc_xcursor->mx_cursor.mc_pg[0] = NODEDATA(node);
-                                                       } else
+                                                       } else {
                                                                mdb_xcursor_init1(m3, node);
+                                                               m3->mc_xcursor->mx_cursor.mc_flags |= C_DEL;
+                                                       }
                                                }
                                        }
                                }