fix: StateSync Restore by excluding memory store (backport #16449) (#16451)

Co-authored-by: Chill Validation <92176880+chillyvee@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2023-06-07 23:28:47 +00:00
committed by GitHub
co-authored by Chill Validation
parent 4eea902c54
commit 2100a73dce
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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{