From 0222b1701eff500adc6ac354e00f80169edd5f5b Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 8 Nov 2015 21:35:48 +0100 Subject: [PATCH] Remvoe automatic index conversion --- checker/checker.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/checker/checker.go b/checker/checker.go index 26219e604..55639d69c 100644 --- a/checker/checker.go +++ b/checker/checker.go @@ -3,7 +3,6 @@ package checker import ( "errors" "fmt" - "os" "sync" "github.com/restic/restic" @@ -73,14 +72,8 @@ func (c *Checker) LoadIndex() (hints []error, errs []error) { debug.Log("LoadIndex", "worker got index %v", id) idx, err := repository.LoadIndexWithDecoder(c.repo, id.String(), repository.DecodeIndex) if err == repository.ErrOldIndexFormat { - debug.Log("LoadIndex", "old index format found, converting") - fmt.Fprintf(os.Stderr, "convert index %v to new format\n", id.Str()) - id, err = repository.ConvertIndex(c.repo, id) - if err != nil { - return err - } - - idx, err = repository.LoadIndexWithDecoder(c.repo, id.String(), repository.DecodeIndex) + debug.Log("LoadIndex", "index %v has old format", id.Str()) + idx, err = repository.LoadIndexWithDecoder(c.repo, id.String(), repository.DecodeOldIndex) } if err != nil {