mdbx: allow mixind with/without MDBX_WRITEMAP for the same database.

Change-Id: I916bb9e9b44a58cf78786e76a8c42d62e0bfc579
This commit is contained in:
Leonid Yuriev
2020-06-20 23:55:15 +03:00
parent 171a254425
commit 0fc2d39cce
2 changed files with 6 additions and 11 deletions

View File

@@ -10189,8 +10189,7 @@ int __cold mdbx_env_open(MDBX_env *env, const char *pathname, unsigned flags,
goto bailout;
}
const unsigned rigorous_flags =
MDBX_WRITEMAP | MDBX_SAFE_NOSYNC | MDBX_MAPASYNC;
const unsigned rigorous_flags = MDBX_SAFE_NOSYNC | MDBX_MAPASYNC;
const unsigned mode_flags = rigorous_flags | MDBX_NOMETASYNC |
MDBX_LIFORECLAIM | MDBX_COALESCE | MDBX_NORDAHEAD;