mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx++: поддержка MDBX_VALIDATION
.
This commit is contained in:
parent
3517db6178
commit
a79a318d61
2
mdbx.h++
2
mdbx.h++
@ -3685,6 +3685,8 @@ public:
|
|||||||
bool disable_readahead{false};
|
bool disable_readahead{false};
|
||||||
/// \copydoc MDBX_NOMEMINIT
|
/// \copydoc MDBX_NOMEMINIT
|
||||||
bool disable_clear_memory{false};
|
bool disable_clear_memory{false};
|
||||||
|
/// \copydoc MDBX_VALIDATION
|
||||||
|
bool enable_validation{false};
|
||||||
MDBX_CXX11_CONSTEXPR operate_options() noexcept {}
|
MDBX_CXX11_CONSTEXPR operate_options() noexcept {}
|
||||||
MDBX_CXX11_CONSTEXPR
|
MDBX_CXX11_CONSTEXPR
|
||||||
operate_options(const operate_options &) noexcept = default;
|
operate_options(const operate_options &) noexcept = default;
|
||||||
|
@ -1232,6 +1232,8 @@ env::operate_parameters::make_flags(bool accede, bool use_subdirectory) const {
|
|||||||
flags |= MDBX_NORDAHEAD;
|
flags |= MDBX_NORDAHEAD;
|
||||||
if (options.disable_clear_memory)
|
if (options.disable_clear_memory)
|
||||||
flags |= MDBX_NOMEMINIT;
|
flags |= MDBX_NOMEMINIT;
|
||||||
|
if (options.enable_validation)
|
||||||
|
flags |= MDBX_VALIDATION;
|
||||||
|
|
||||||
if (mode != readonly) {
|
if (mode != readonly) {
|
||||||
if (options.nested_write_transactions)
|
if (options.nested_write_transactions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user