We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94365b2 commit e83c867Copy full SHA for e83c867
cmd/pruner.go
@@ -44,6 +44,9 @@ func PruneAppState(dataDir string) error {
44
}
45
46
for _, storeInfo := range cInfo.StoreInfos {
47
+ // we only want to prune the stores with actual data.
48
+ // sometimes in-memory stores get leaked to disk without data.
49
+ // if that happens, the store's computed hash is empty as well.
50
if len(storeInfo.CommitId.Hash) > 0 {
51
storeNames = append(storeNames, storeInfo.Name)
52
} else {
0 commit comments