Skip to content

Commit 3624740

Browse files
yihuangmmsqe
andauthored
Problem: v1.3.1 not released (#1528)
* Problem: v1.3.1 not released * no space left on upgrade * fix approve * Revert "fix approve" This reverts commit b0c346e. * Revert "no space left on upgrade" This reverts commit 97affcd. * Problem: block cache size not count in index/filters Solution: - increase block cache size --------- Co-authored-by: mmsqe <[email protected]>
1 parent c92f3a9 commit 3624740

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

3-
## UNRELEASED
3+
*Jul 26, 2024*
4+
5+
## v1.3.1
46

57
* (store) [#1510](https://github.com/crypto-org-chain/cronos/pull/1510) Upgrade rocksdb to `v9.1.1`.
68
* (store) [#1511](https://github.com/crypto-org-chain/cronos/pull/1511) Upgrade rocksdb to `v9.2.1`.

cmd/cronosd/opendb/opendb_rocksdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import (
1313
"github.com/linxGnu/grocksdb"
1414
)
1515

16-
const BlockCacheSize = 1 << 30
16+
// 3G block cache
17+
const BlockCacheSize = 3 << 30
1718

1819
func OpenDB(_ types.AppOptions, home string, backendType dbm.BackendType) (dbm.DB, error) {
1920
dataDir := filepath.Join(home, "data")
@@ -98,7 +99,6 @@ func NewRocksdbOptions(opts *grocksdb.Options, sstFileWriter bool) *grocksdb.Opt
9899
// block based table options
99100
bbto := grocksdb.NewDefaultBlockBasedTableOptions()
100101

101-
// 1G block cache
102102
bbto.SetBlockCache(grocksdb.NewLRUCache(BlockCacheSize))
103103

104104
// http://rocksdb.org/blog/2021/12/29/ribbon-filter.html

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
, nativeByteOrder ? true # nativeByteOrder mode will panic on big endian machines
1212
}:
1313
let
14-
version = "v1.3.0";
14+
version = "v1.3.1";
1515
pname = "cronosd";
1616
tags = [ "ledger" "netgo" network "rocksdb" "grocksdb_no_link" ] ++ lib.optionals nativeByteOrder [ "nativebyteorder" ];
1717
ldflags = lib.concatStringsSep "\n" ([

0 commit comments

Comments
 (0)