mdbx: fix/rework shrinking, add MDBX_SHRINK_ALLOWED.

Change-Id: I014440850aa4be927843aa2a6a268794a4da9b2a
This commit is contained in:
Leo Yuriev
2017-07-21 10:30:46 +03:00
parent 599711a007
commit 242baf761f
2 changed files with 54 additions and 32 deletions

View File

@@ -669,6 +669,8 @@ struct MDBX_env {
/* Failed to update the meta page. Probably an I/O error. */
#define MDBX_FATAL_ERROR UINT32_C(0x80000000)
/* Additional flag for mdbx_sync_locked() */
#define MDBX_SHRINK_ALLOWED UINT32_C(0x40000000)
/* Some fields are initialized. */
#define MDBX_ENV_ACTIVE UINT32_C(0x20000000)
/* me_txkey is set */