Fix integer overflow of cachesize on windows
This commit is contained in:
parent
096db389d1
commit
275d4dfed9
@ -45,7 +45,7 @@ static lmdb::val CACHE_FORMAT_VERSION_KEY("cache_format_version");
|
|||||||
|
|
||||||
constexpr size_t MAX_RESTORED_MESSAGES = 30;
|
constexpr size_t MAX_RESTORED_MESSAGES = 30;
|
||||||
|
|
||||||
constexpr auto DB_SIZE = 32UL * 1024UL * 1024UL * 1024UL; // 512 GB
|
constexpr auto DB_SIZE = 32UL * 1024UL * 1024UL * 1024ULL; // 32 GB
|
||||||
constexpr auto MAX_DBS = 8092UL;
|
constexpr auto MAX_DBS = 8092UL;
|
||||||
|
|
||||||
//! Cache databases and their format.
|
//! Cache databases and their format.
|
||||||
|
Loading…
Reference in New Issue
Block a user