vhbit / lmdb-rs

Rust bindings for LMDB
MIT License
114 stars 47 forks source link

wrapper for mdb_env_set_mapsize #46

Closed michael-wi closed 7 years ago

michael-wi commented 7 years ago

If running into MDB_MAP_FULL error it would be nice to have option to resize map without need to re-create environment. As long as no active transaction is open, call to mdb_env_set_mapsize() would allow resizing on open environment. I added wrapper method to Environment plus a test. Tested in my project resizing multiple times with a couple of MB of data.

michael-wi commented 7 years ago

squashed change to MDB_MAP_FULL in