]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sun, 11 Feb 2018 20:57:50 +0000 (20:57 +0000)
Set C_DEL flag on reinit'd subcursor

libraries/liblmdb/mdb.c

index e9d385c8ae60afbe6ac2914b6b2bd2f63430a978..bc0ed354ffe60877359f23db84987e8a6d831ab9 100644 (file)
@@ -8465,8 +8465,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;
+                                                       }
                                                }
                                        }
                                }