Fix db_size

This commit is contained in:
Luboš Uhliarik 2023-10-25 15:28:01 +02:00
parent 61bbac78a7
commit c263dc9b2b

View File

@ -364,7 +364,7 @@ index 0000000..fe76779
+ if (dberr == 0) { + if (dberr == 0) {
+ /* Default to 2GB map size which limits the total database + /* Default to 2GB map size which limits the total database
+ * size to something reasonable. */ + * size to something reasonable. */
+ dberr = mdb_env_set_mapsize(file.env, UINT32_MAX); + dberr = mdb_env_set_mapsize(file.env, INT32_MAX);
+ } + }
+ +
+ if (dberr == 0) { + if (dberr == 0) {