Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

mdbx_env_set_geometry with defaults prevents env from being usable #170

Closed
Thermi opened this issue Mar 12, 2021 · 1 comment
Closed

mdbx_env_set_geometry with defaults prevents env from being usable #170

Thermi opened this issue Mar 12, 2021 · 1 comment
Assignees
Labels

Comments

@Thermi
Copy link

Thermi commented Mar 12, 2021

Code snippet:

 rc = mdbx_env_set_geometry(env,
    0, // size_lower
    -1, // size_now
    INTPTR_MAX, // size_upper
    -1, // growth_step
    -1, // shrink_threshold
    -1); // pagesize

Makes env_open throw MDBX_TOO_LARGE.

Same for C++ API, because those values from the snippet are the defaults for the geometry class.
What's your advice? The problem doesn't exist with the C API (because there the defaults are different).

@erthink
Copy link
Owner

erthink commented Mar 13, 2021

Related to #166.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants