mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 10:58:20 +08:00
mdbx++: добавление недостающего метода mdbx::env::limits::max_map_handles()
.
This commit is contained in:
parent
49c6e14b30
commit
b4f395be50
5
mdbx.h++
5
mdbx.h++
@ -3840,6 +3840,9 @@ public:
|
|||||||
/// \brief Returns the maximal write transaction size (i.e. limit for
|
/// \brief Returns the maximal write transaction size (i.e. limit for
|
||||||
/// summary volume of dirty pages) in bytes for specified page size.
|
/// summary volume of dirty pages) in bytes for specified page size.
|
||||||
static inline size_t transaction_size_max(intptr_t pagesize);
|
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.
|
/// \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);
|
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 {
|
inline env::operate_parameters env::get_operation_parameters() const {
|
||||||
const auto flags = get_flags();
|
const auto flags = get_flags();
|
||||||
return operate_parameters(max_maps(), max_readers(),
|
return operate_parameters(max_maps(), max_readers(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user