]> git.sur5r.net Git - openldap/commitdiff
More for cursor EOF
authorHoward Chu <hyc@symas.com>
Wed, 9 Jul 2014 22:03:54 +0000 (15:03 -0700)
committerHoward Chu <hyc@symas.com>
Wed, 9 Jul 2014 22:03:54 +0000 (15:03 -0700)
Must also set in sub-cursor if deleting entire subDB

libraries/liblmdb/mdb.c

index 5e7716151d81952c49225fef664d24d5e41a5568..f8c94e3100a0e38d4a442a4349ebe63bd3d30e4f 100644 (file)
@@ -7659,6 +7659,8 @@ mdb_cursor_del0(MDB_cursor *mc)
                                        m3->mc_flags |= C_DEL;
                                        if (m3->mc_ki[mc->mc_top] > ki)
                                                m3->mc_ki[mc->mc_top]--;
+                                       else if (mc->mc_db->md_flags & MDB_DUPSORT)
+                                               m3->mc_xcursor->mx_cursor.mc_flags |= C_EOF;
                                }
                                if (m3->mc_ki[mc->mc_top] >= nkeys) {
                                        rc = mdb_cursor_sibling(m3, 1);