mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-02 20:15:27 +03:00
vere: use hex literal for database size passed to u3_lmdb_init()
This commit is contained in:
parent
e4616828c1
commit
db1b8d8239
@ -751,10 +751,11 @@ u3_disk_init(c3_c* pax_c, u3_disk_cb cb_u)
|
|||||||
// "[..] on 64-bit there is no penalty for making this huge (say 1TB)."
|
// "[..] on 64-bit there is no penalty for making this huge (say 1TB)."
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
|
const size_t siz_i =
|
||||||
#if (defined(U3_CPU_aarch64) && defined(U3_OS_linux)) || defined(U3_OS_mingw)
|
#if (defined(U3_CPU_aarch64) && defined(U3_OS_linux)) || defined(U3_OS_mingw)
|
||||||
const size_t siz_i = 64424509440;
|
0xf00000000;
|
||||||
#else
|
#else
|
||||||
const size_t siz_i = 1099511627776;
|
0x10000000000;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( 0 == (log_u->mdb_u = u3_lmdb_init(log_c, siz_i)) ) {
|
if ( 0 == (log_u->mdb_u = u3_lmdb_init(log_c, siz_i)) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user