mirror of
https://github.com/isar/libmdbx.git
synced 2025-03-04 05:08:14 +08:00
lmdb: fix ABI compatibility with original liblmdb.so
Change-Id: I770a49b7a506f3f2a21ea3af36fd07c16a32dc30
This commit is contained in:
parent
001f89d4af
commit
295beda00c
2
lmdb.h
2
lmdb.h
@ -734,8 +734,8 @@ int mdb_env_sync(MDB_env *env, int force);
|
|||||||
* on opening next time, and transactions since the last non-weak
|
* on opening next time, and transactions since the last non-weak
|
||||||
* checkpoint (meta-page update) will rolledback for consistency guarantee.
|
* checkpoint (meta-page update) will rolledback for consistency guarantee.
|
||||||
*/
|
*/
|
||||||
|
void mdb_env_close(MDB_env *env);
|
||||||
void mdb_env_close_ex(MDB_env *env, int dont_sync);
|
void mdb_env_close_ex(MDB_env *env, int dont_sync);
|
||||||
#define mdb_env_close(env) mdb_env_close_ex(env, 0)
|
|
||||||
|
|
||||||
/** @brief Set environment flags.
|
/** @brief Set environment flags.
|
||||||
*
|
*
|
||||||
|
6
mdb.c
6
mdb.c
@ -4776,6 +4776,12 @@ mdb_env_close0(MDB_env *env)
|
|||||||
env->me_flags &= ~(MDB_ENV_ACTIVE|MDB_ENV_TXKEY);
|
env->me_flags &= ~(MDB_ENV_ACTIVE|MDB_ENV_TXKEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ESECT
|
||||||
|
mdb_env_close(MDB_env *env)
|
||||||
|
{
|
||||||
|
mdb_env_close_ex(env, 0);
|
||||||
|
}
|
||||||
|
|
||||||
void ESECT
|
void ESECT
|
||||||
mdb_env_close_ex(MDB_env *env, int dont_sync)
|
mdb_env_close_ex(MDB_env *env, int dont_sync)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user