diff --git a/mdbx.h++ b/mdbx.h++ index 9f52793d..58a2b7ce 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -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(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(),