mirror of
https://github.com/restic/restic.git
synced 2025-08-23 06:07:30 +00:00
Merge final indexes together for faster index access
This commit is contained in:

committed by
Michael Eischer

parent
3b7a3711e6
commit
e388d962a5
@@ -135,10 +135,9 @@ func TestIndexSerialize(t *testing.T) {
|
||||
|
||||
id := restic.NewRandomID()
|
||||
rtest.OK(t, idx.SetID(id))
|
||||
id2, err := idx.ID()
|
||||
ids, err := idx.IDs()
|
||||
rtest.OK(t, err)
|
||||
rtest.Assert(t, id2.Equal(id),
|
||||
"wrong ID returned: want %v, got %v", id, id2)
|
||||
rtest.Equals(t, restic.IDs{id}, ids)
|
||||
|
||||
idx3, err := repository.DecodeIndex(wr3.Bytes())
|
||||
rtest.OK(t, err)
|
||||
|
Reference in New Issue
Block a user