Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return more information when opening an Environment #152

Open
Kerollmops opened this issue Jan 11, 2023 · 0 comments
Open

Return more information when opening an Environment #152

Kerollmops opened this issue Jan 11, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Kerollmops
Copy link
Member

When we open an environment the map size we specify is not the same as that LMDB has internally. LMDB will silently clamp the size to the maximum one between the one in the options and the one disk one. 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 EnvOpenOptions for 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.
@Kerollmops Kerollmops added the enhancement New feature or request label Jan 11, 2023
@Kerollmops Kerollmops added this to the v0.20.0 milestone Jan 11, 2023
@Kerollmops Kerollmops changed the title Return some DB information when opening an Environment Return more information when opening an Environment Jan 11, 2023
@Kerollmops Kerollmops modified the milestones: v0.20.0, v0.21.0 Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant