From c4f4d9ebf3f9690ff85151f66f2497b69b3da00a Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Thu, 8 Dec 2016 16:33:17 +0300 Subject: [PATCH] mdbx: rethink mdbx_cursor_eof() for libfpta. --- mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdbx.c b/mdbx.c index d7001778..64c57683 100644 --- a/mdbx.c +++ b/mdbx.c @@ -361,5 +361,5 @@ int mdbx_cursor_eof(MDB_cursor *mc) if (unlikely(mc->mc_signature != MDBX_MC_SIGNATURE)) return MDB_VERSION_MISMATCH; - return (mc->mc_flags & (C_INITIALIZED | C_EOF)) != C_INITIALIZED ? 1 : 0; + return (mc->mc_flags & C_INITIALIZED) ? 0 : 1; }