Skip to content

Commit

Permalink
Fix StateSync Restore by excluding memory store
Browse files Browse the repository at this point in the history
  • Loading branch information
chillyvee committed Jun 7, 2023
1 parent c80d64e commit f01057a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,8 @@ func (rs *Store) buildCommitInfo(version int64) *types.CommitInfo {
storeInfos := []types.StoreInfo{}
for _, key := range keys {
store := rs.stores[key]
if store.GetStoreType() == types.StoreTypeTransient {
storeType := store.GetStoreType()
if storeType == types.StoreTypeTransient || storeType == types.StoreTypeMemory {
continue
}
storeInfos = append(storeInfos, types.StoreInfo{
Expand Down

0 comments on commit f01057a

Please sign in to comment.