From: Howard Chu Date: Mon, 12 Sep 2011 06:13:36 +0000 (-0700) Subject: One more sub-cursor fix X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8acb7550349352522a4e2eb10bfa27850df89079;p=openldap One more sub-cursor fix --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 225ffc4195..386912464e 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -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; }