repo: Remove packer limits

This commit simplifies finding a packer: The first open packer is taken,
and the upper limit for the pack file is removed.
This commit is contained in:
Alexander Neumann
2017-07-16 20:02:59 +02:00
parent d3fee08f9a
commit db0e3cd772
3 changed files with 6 additions and 15 deletions

View File

@@ -91,7 +91,7 @@ func fillPacks(t testing.TB, rnd *randReader, be Saver, pm *packerManager, buf [
}
bytes += l
if packer.Size() < minPackSize && pm.countPacker() < maxPackers {
if packer.Size() < minPackSize {
pm.insertPacker(packer)
continue
}