mdbx: add MDBX_EPSILON support for mdbx_estimate_range().

Change-Id: I2d89a9f20bfa16c8f35a4381709bc54f86f0ff67
This commit is contained in:
Leonid Yuriev
2019-05-23 23:17:35 +03:00
parent b4002a8484
commit e26b7501eb
3 changed files with 93 additions and 55 deletions

1
mdbx.h
View File

@@ -1737,6 +1737,7 @@ LIBMDBX_API int mdbx_estimate_move(const MDBX_cursor *cursor, MDBX_val *key,
* [out] distance_items A pointer to store range estimation result.
*
* Returns A non-zero error value on failure and 0 on success. */
#define MDBX_EPSILON ((MDBX_val *)((ptrdiff_t)-1))
LIBMDBX_API int mdbx_estimate_range(MDBX_txn *txn, MDBX_dbi dbi,
MDBX_val *begin_key, MDBX_val *begin_data,
MDBX_val *end_key, MDBX_val *end_data,