mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-12 14:00:05 +00:00
On mac lmdb can't start with error "cannot allocate memory" until I not reduced magic number (#779)
This commit is contained in:
parent
95365c8f37
commit
7cc0b7e391
@ -57,7 +57,7 @@ func (opts lmdbOpts) Open() (KV, error) {
|
||||
}
|
||||
opts.path, _ = ioutil.TempDir(os.TempDir(), "lmdb")
|
||||
} else {
|
||||
err = env.SetMapSize(32 << 40) // 32TB
|
||||
err = env.SetMapSize(4 << 40) // 4TB
|
||||
logger = log.New("lmdb", path.Base(opts.path))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user