-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
When we open an environment the map size we specify is not the same as the one LMDB has internally. LMDB will silently clamp the size to the maximum between the one in the options and the one disk. We could get the Env::map_size and return it if required.
We currently disallow opening an environment that doesn't have the same EnvOpenOptions, and therefore map size. We should either:
- not store the map size in the
EnvOpenOptions - Return the
EnvOpenOptionsfor the user to try again with them, and therefore add getters. - Get the
Env::map_size, store it in the global map and return it to the user when opening the env.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request