mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 15:48:21 +08:00
mdbx: rethink mdbx_cursor_eof() for libfpta.
This commit is contained in:
parent
9775b409bc
commit
c4f4d9ebf3
2
mdbx.c
2
mdbx.c
@ -361,5 +361,5 @@ int mdbx_cursor_eof(MDB_cursor *mc)
|
|||||||
if (unlikely(mc->mc_signature != MDBX_MC_SIGNATURE))
|
if (unlikely(mc->mc_signature != MDBX_MC_SIGNATURE))
|
||||||
return MDB_VERSION_MISMATCH;
|
return MDB_VERSION_MISMATCH;
|
||||||
|
|
||||||
return (mc->mc_flags & (C_INITIALIZED | C_EOF)) != C_INITIALIZED ? 1 : 0;
|
return (mc->mc_flags & C_INITIALIZED) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user