From 5e3365d2336a1865cb0b439acaad3e66976aeb8b Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 22 Jan 2017 22:10:36 +0100 Subject: [PATCH] Index: Store pack ID --- src/restic/index/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/index/index.go b/src/restic/index/index.go index 6a122e67a..f1c41b79f 100644 --- a/src/restic/index/index.go +++ b/src/restic/index/index.go @@ -169,7 +169,7 @@ func (idx *Index) AddPack(id restic.ID, size int64, entries []restic.Blob) error return errors.Errorf("pack %v already present in the index", id.Str()) } - idx.Packs[id] = Pack{Size: size, Entries: entries} + idx.Packs[id] = Pack{ID: id, Size: size, Entries: entries} return nil }