repository: index saving belongs into the MasterIndex

This commit is contained in:
Michael Eischer 2022-05-26 12:38:18 +02:00
parent 0c0e7b6957
commit a77d5c4d11
7 changed files with 54 additions and 54 deletions

View file

@ -421,8 +421,7 @@ func testRepositoryIncrementalIndex(t *testing.T, version uint) {
saveRandomDataBlobs(t, repo, 5, 1<<15)
rtest.OK(t, repo.FlushPacks(context.Background()))
}
rtest.OK(t, repo.SaveFullIndex(context.TODO()))
rtest.OK(t, repo.Flush(context.TODO()))
}
// add another 5 packs
@ -432,7 +431,7 @@ func testRepositoryIncrementalIndex(t *testing.T, version uint) {
}
// save final index
rtest.OK(t, repo.SaveIndex(context.TODO()))
rtest.OK(t, repo.Flush(context.TODO()))
packEntries := make(map[restic.ID]map[restic.ID]struct{})