From c25b01b5b6a9b77de53185053cd7d829e95ea14c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 1 Sep 2016 00:41:35 +0100 Subject: [PATCH] mdbx: backport - reset cursor EOF flag in cursor_set (ITS#8489). It usually gets done anyway, but one of the fastpath shortcuts bypassed this step. Change-Id: I89d3c797ce969524e383b093dcf592579a514de1 --- mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mdb.c b/mdb.c index 3612bdad..84aff9b9 100644 --- a/mdb.c +++ b/mdb.c @@ -6090,6 +6090,7 @@ mdb_cursor_set(MDB_cursor *mc, MDB_val *key, MDB_val *data, } } rc = 0; + mc->mc_flags &= ~C_EOF; goto set2; } }