Skip to content

Commit 8858021

Browse files
mergify[bot]yihuang
authored andcommitted
refactor: add error log when iavl set failed (backport cosmos#13803) (cosmos#13804)
* refactor: add error log when iavl set failed (cosmos#13803) * add error log when iavl set failed Ref: cosmos#12012 * Update CHANGELOG.md * play safe (cherry picked from commit 22f3261) # Conflicts: # CHANGELOG.md * fix conflicts Co-authored-by: yihuang <[email protected]>
1 parent a2148b1 commit 8858021

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
4141
### Bug Fixes
4242

4343
* (x/gov) [#13728](https://github.com/cosmos/cosmos-sdk/pull/13728) Fix propagation of message events to the current context in `EndBlocker`.
44+
* (store) [#13803](https://github.com/cosmos/cosmos-sdk/pull/13803) Add an error log if iavl set operation failed.
4445

4546
## [v0.46.4](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.4) - 2022-11-01
4647

store/iavl/store.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ var (
3636

3737
// Store Implements types.KVStore and CommitKVStore.
3838
type Store struct {
39-
tree Tree
40-
logger types.Logger
41-
metrics metrics.StoreMetrics
39+
tree Tree
40+
logger log.Logger
4241
}
4342

4443
// LoadStore returns an IAVL Store as a CommitKVStore. Internally, it will load the
@@ -89,9 +88,8 @@ func LoadStoreWithInitialVersion(db dbm.DB, logger log.Logger, key types.StoreKe
8988
}
9089

9190
return &Store{
92-
tree: tree,
93-
logger: logger,
94-
metrics: metrics,
91+
tree: tree,
92+
logger: logger,
9593
}, nil
9694
}
9795

0 commit comments

Comments
 (0)