From f7580cd3b67d643c0f94cd4297c9c3a2a712990e Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 19 Aug 2014 15:43:10 -0700 Subject: [PATCH] snap: fix missing continue --- snap/snapshotter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/snap/snapshotter.go b/snap/snapshotter.go index e7a07d4cc..1f3ce6fa6 100644 --- a/snap/snapshotter.go +++ b/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 }