diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-02-05 18:49:59 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-07 20:36:25 +0800 |
commit | d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2 (patch) | |
tree | 6105a12328eba306896de5421b6d91ff775a0d56 /ethdb | |
parent | 85b3b1c8d60db82af9138a0649f6e6dce6b49cad (diff) | |
download | go-tangerine-d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2.tar go-tangerine-d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2.tar.gz go-tangerine-d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2.tar.bz2 go-tangerine-d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2.tar.lz go-tangerine-d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2.tar.xz go-tangerine-d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2.tar.zst go-tangerine-d6225ab846d1abeeb9ba9e9aad84bc566ddf52f2.zip |
cmd/utils, eth: relinquish GC cache to read cache in archive mode
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index 6c62d6a38..17f1478e5 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -25,6 +25,7 @@ import ( "sync" "time" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/metrics" "github.com/syndtr/goleveldb/leveldb" @@ -70,7 +71,7 @@ func NewLDBDatabase(file string, cache int, handles int) (*LDBDatabase, error) { if handles < 16 { handles = 16 } - logger.Info("Allocated cache and file handles", "cache", cache, "handles", handles) + logger.Info("Allocated cache and file handles", "cache", common.StorageSize(cache*1024*1024), "handles", handles) // Open the db and recover any potential corruptions db, err := leveldb.OpenFile(file, &opt.Options{ |