snap: fix missing continue

release-2.0
Xiang Li 2014-08-19 15:43:10 -07:00 committed by Yicheng Qin
parent 12a9b84b2b
commit f7580cd3b6
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ func (s *Snapshotter) Load() (*raft.Snapshot, error) {
}
if err = json.Unmarshal(serializedSnap.Data, &snap); err != nil {
log.Printf("Corruptted snapshot file %v: %v", name, err)
continue
}
break
}