mdbx: check for running write-txn inside mdbx_env_close().

This commit is contained in:
Leo Yuriev
2017-12-19 16:38:12 +03:00
parent b1c7fa30c0
commit 3e9308eb0e
2 changed files with 8 additions and 4 deletions

2
mdbx.h
View File

@@ -754,7 +754,7 @@ LIBMDBX_API int mdbx_env_sync(MDBX_env *env, int force);
* ignored on opening next time, and transactions since the
* last non-weak checkpoint (meta-page update) will rolledback
* for consistency guarantee. */
LIBMDBX_API void mdbx_env_close(MDBX_env *env);
LIBMDBX_API int mdbx_env_close(MDBX_env *env);
/* Set environment flags.
*