mdbx++: добавление недостающего метода mdbx::env::limits::max_map_handles().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-07-04 14:03:00 +03:00
parent 49c6e14b30
commit b4f395be50

View File

@ -3840,6 +3840,9 @@ public:
/// \brief Returns the maximal write transaction size (i.e. limit for
/// summary volume of dirty pages) in bytes for specified page size.
static inline size_t transaction_size_max(intptr_t pagesize);
/// \brief Returns the maximum opened map handles, aka DBI-handles.
static inline size_t max_map_handles(void);
};
/// \brief Returns the minimal database size in bytes for the environment.
@ -6125,6 +6128,8 @@ inline size_t env::limits::transaction_size_max(intptr_t pagesize) {
return static_cast<size_t>(result);
}
inline size_t env::limits::max_map_handles(void) { return MDBX_MAX_DBI; }
inline env::operate_parameters env::get_operation_parameters() const {
const auto flags = get_flags();
return operate_parameters(max_maps(), max_readers(),