]> git.sur5r.net Git - openldap/commitdiff
One more sub-cursor fix
authorHoward Chu <hyc@symas.com>
Mon, 12 Sep 2011 06:13:36 +0000 (23:13 -0700)
committerHoward Chu <hyc@symas.com>
Mon, 12 Sep 2011 06:13:36 +0000 (23:13 -0700)
libraries/libmdb/mdb.c

index 225ffc41952927a4dce652ef31cfa0e5811e33bb..386912464ea88a30cb3cbbcef00fc718928c51b1 100644 (file)
@@ -3010,6 +3010,9 @@ set3:
                        }
 
                } else {
+                       if (mc->mc_db->md_flags & MDB_DUPSORT) {
+                               mc->mc_xcursor->mx_cursor.mc_flags &= ~C_INITIALIZED;
+                       }
                        if ((rc = mdb_read_data(mc->mc_txn, leaf, data)) != MDB_SUCCESS)
                                return rc;
                }