mdbx: удаление DEFAULT_MAPSIZE.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2024-05-12 22:30:47 +03:00
parent 3de3d425a1
commit 12eb2df57d
3 changed files with 39 additions and 40 deletions

View File

@@ -494,11 +494,6 @@ struct MDBX_env {
/* pseudo-error code, not exposed outside libmdbx */
#define MDBX_NO_ROOT (MDBX_LAST_ADDED_ERRCODE + 33)
/* Default size of memory map.
* This is certainly too small for any actual applications. Apps should
* always set the size explicitly using mdbx_env_set_geometry(). */
#define DEFAULT_MAPSIZE MEGABYTE
/* Number of slots in the reader table.
* This value was chosen somewhat arbitrarily. The 61 is a prime number,
* and such readers plus a couple mutexes fit into single 4KB page.