mdbx++: поддержка MDBX_VALIDATION.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-05-26 13:58:52 +03:00
parent 3517db6178
commit a79a318d61
2 changed files with 4 additions and 0 deletions

View File

@ -3685,6 +3685,8 @@ public:
bool disable_readahead{false};
/// \copydoc MDBX_NOMEMINIT
bool disable_clear_memory{false};
/// \copydoc MDBX_VALIDATION
bool enable_validation{false};
MDBX_CXX11_CONSTEXPR operate_options() noexcept {}
MDBX_CXX11_CONSTEXPR
operate_options(const operate_options &) noexcept = default;

View File

@ -1232,6 +1232,8 @@ env::operate_parameters::make_flags(bool accede, bool use_subdirectory) const {
flags |= MDBX_NORDAHEAD;
if (options.disable_clear_memory)
flags |= MDBX_NOMEMINIT;
if (options.enable_validation)
flags |= MDBX_VALIDATION;
if (mode != readonly) {
if (options.nested_write_transactions)