mirror of
https://github.com/restic/restic.git
synced 2025-10-09 23:14:08 +00:00
check: Simplify blob status tracking
UnusedBlobs now directly reads the list of existing blobs from the repository index. This removes the need for the blobStatusExists flag, which in turn allows converting the blobRefs map into a BlobSet.
This commit is contained in:
@@ -181,7 +181,7 @@ func TestUnreferencedBlobs(t *testing.T) {
|
||||
test.OKs(t, checkPacks(chkr))
|
||||
test.OKs(t, checkStruct(chkr))
|
||||
|
||||
blobs := chkr.UnusedBlobs()
|
||||
blobs := chkr.UnusedBlobs(context.TODO())
|
||||
sort.Sort(blobs)
|
||||
|
||||
test.Equals(t, unusedBlobsBySnapshot, blobs)
|
||||
|
Reference in New Issue
Block a user