Skip to content

Commit

Permalink
fix(store/v1): Do not panic on prune in Commit (#18897)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear authored Dec 27, 2023
1 parent f3e18df commit f08c8cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion store/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,10 @@ func (rs *Store) Commit() types.CommitID {
rs.removalMap = make(map[types.StoreKey]bool)

if err := rs.handlePruning(version); err != nil {
panic(err)
rs.logger.Error(
"failed to prune store, please check your pruning configuration",
"err", err,
)
}

return types.CommitID{
Expand Down

0 comments on commit f08c8cc

Please sign in to comment.