Skip to content

Commit c2f6f04

Browse files
committed
lmdb.h Caveats: Reserved vs. actual mem/disk usage
1 parent 13ecac7 commit c2f6f04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/liblmdb/lmdb.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
* access to locks and lock file. Exceptions: On read-only filesystems
7878
* or with the #MDB_NOLOCK flag described under #mdb_env_open().
7979
*
80+
* - An LMDB configuration will often reserve considerable \b unused
81+
* memory address space and maybe file size for future growth.
82+
* This does not use actual memory or disk space, but users may need
83+
* to understand the difference so they won't be scared off.
84+
*
8085
* - By default, in versions before 0.9.10, unused portions of the data
8186
* file might receive garbage data from memory freed by other code.
8287
* (This does not happen when using the #MDB_WRITEMAP flag.) As of

0 commit comments

Comments
 (0)