forked from TrueCloudLab/restic
b46cc6d57e
When loading a blob, restic first looks up pack files containing the blob. To avoid unnecessary work an already cached pack file is preferred. However, if there is only a single pack file to choose from (which is the normal case) sorting the one-element list won't change anything. Therefore avoid the unnecessary cache check in that case. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
index.go | ||
index_test.go | ||
key.go | ||
master_index.go | ||
master_index_test.go | ||
packer_manager.go | ||
packer_manager_test.go | ||
repack.go | ||
repack_test.go | ||
repository.go | ||
repository_test.go | ||
testing.go | ||
worker_group.go |