mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:04:13 +08:00
mdbx: fix mdbx_env_get_maxkeysize() result type (minor).
Change-Id: I8e3a7f8c2b81b5f8ac40801313cbd6f17d2dea64
This commit is contained in:
parent
f371f10743
commit
8acc1979bb
2
mdbx.h
2
mdbx.h
@ -918,7 +918,7 @@ LIBMDBX_API int mdbx_env_set_maxdbs(MDBX_env *env, MDBX_dbi dbs);
|
||||
* [in] env An environment handle returned by mdbx_env_create()
|
||||
*
|
||||
* Returns The maximum size of a key we can write. */
|
||||
LIBMDBX_API intptr_t mdbx_env_get_maxkeysize(MDBX_env *env);
|
||||
LIBMDBX_API int mdbx_env_get_maxkeysize(MDBX_env *env);
|
||||
|
||||
/* Set application information associated with the MDBX_env.
|
||||
*
|
||||
|
@ -4991,7 +4991,7 @@ fail:
|
||||
return rc;
|
||||
}
|
||||
|
||||
intptr_t __cold mdbx_env_get_maxkeysize(MDBX_env *env) {
|
||||
int __cold mdbx_env_get_maxkeysize(MDBX_env *env) {
|
||||
if (!env || env->me_signature != MDBX_ME_SIGNATURE || !env->me_maxkey_limit)
|
||||
return -MDBX_EINVAL;
|
||||
return env->me_maxkey_limit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user