lmdb: fix ABI compatibility with original liblmdb.so

Change-Id: I770a49b7a506f3f2a21ea3af36fd07c16a32dc30
This commit is contained in:
Leo Yuriev 2015-06-04 19:12:14 +03:00
parent 001f89d4af
commit 295beda00c
2 changed files with 7 additions and 1 deletions

2
lmdb.h
View File

@ -734,8 +734,8 @@ int mdb_env_sync(MDB_env *env, int force);
* on opening next time, and transactions since the last non-weak
* 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);
#define mdb_env_close(env) mdb_env_close_ex(env, 0)
/** @brief Set environment flags.
*

6
mdb.c
View File

@ -4776,6 +4776,12 @@ mdb_env_close0(MDB_env *env)
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
mdb_env_close_ex(MDB_env *env, int dont_sync)
{