From 71d12d33302c514aa24358cfd0b9ef704b831521 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 19 Aug 2014 17:06:02 -0700 Subject: [PATCH] snap: fix typo --- snap/snapshotter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snap/snapshotter.go b/snap/snapshotter.go index 999aab719..782b17f21 100644 --- a/snap/snapshotter.go +++ b/snap/snapshotter.go @@ -71,17 +71,17 @@ func (s *Snapshotter) Load() (*raft.Snapshot, error) { continue } if err = serializedSnap.Unmarshal(b); err != nil { - log.Printf("Corruptted snapshot file %v: %v", name, err) + log.Printf("Corrupted snapshot file %v: %v", name, err) continue } crc := crc32.Update(0, crcTable, serializedSnap.Data) if crc != serializedSnap.Crc { - log.Printf("Corruptted snapshot file %v: crc mismatch", name) + log.Printf("Corrupted snapshot file %v: crc mismatch", name) err = ErrCRCMismatch continue } if err = json.Unmarshal(serializedSnap.Data, &snap); err != nil { - log.Printf("Corruptted snapshot file %v: %v", name, err) + log.Printf("Corrupted snapshot file %v: %v", name, err) continue } break