Operate parameters.
More...
#include <mdbx.h++>
◆ operate_parameters() [1/3]
mdbx::env::operate_parameters::operate_parameters |
( |
| ) |
|
|
inlinenoexcept |
◆ operate_parameters() [2/3]
◆ operate_parameters() [3/3]
◆ durability_from_flags()
◆ make_flags()
MDBX_env_flags_t mdbx::env::operate_parameters::make_flags |
( |
bool |
accede = true , |
|
|
bool |
use_subdirectory = false |
|
) |
| const |
- Parameters
-
accede | Using database/environment which already opened by another process(es). |
The MDBX_ACCEDE
flag is useful to avoid MDBX_INCOMPATIBLE error while opening the database/environment which is already used by another process(es) with unknown mode/flags. In such cases, if there is a difference in the specified flags (MDBX_NOMETASYNC, MDBX_SAFE_NOSYNC, MDBX_UTTERLY_NOSYNC, MDBX_LIFORECLAIM, MDBX_COALESCE and MDBX_NORDAHEAD), instead of returning an error, the database will be opened in a compatibility with the already used mode.
MDBX_ACCEDE
has no effect if the current process is the only one either opening the DB in read-only mode or other process(es) uses the DB in read-only mode.
- Parameters
-
use_subdirectory | use subdirectory to place the DB files |
◆ mode_from_flags()
◆ operator=()
◆ durability
◆ max_maps
unsigned mdbx::env::operate_parameters::max_maps {0} |
The maximum number of named databases for the environment. Zero means default value.
◆ max_readers
unsigned mdbx::env::operate_parameters::max_readers {0} |
The maximum number of threads/reader slots for the environment. Zero means default value.
◆ mode
◆ options
◆ reclaiming
The documentation for this struct was generated from the following file: