From d573c9d54e723d667e3fc4031b21582844a15fbf Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Fri, 17 Feb 2017 19:55:28 +0300 Subject: [PATCH] mdbx: fix mdbx_cursor_on_last(). --- mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdbx.c b/mdbx.c index 42ad6242..66c377d8 100644 --- a/mdbx.c +++ b/mdbx.c @@ -388,7 +388,7 @@ int mdbx_cursor_on_last(MDB_cursor *mc) unsigned i; for(i = 0; i < mc->mc_snum; ++i) { unsigned nkeys = NUMKEYS(mc->mc_pg[i]); - if (mc->mc_ki[i] != nkeys - 1) + if (mc->mc_ki[i] < nkeys - 1) return MDBX_RESULT_FALSE; }