Browse Source

snap: fix missing continue

Xiang Li 11 years ago
parent
commit
f7580cd3b6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      snap/snapshotter.go

+ 1 - 0
snap/snapshotter.go

@@ -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
 	}