repo: Split packers for tree and data

The code now bundles tree blobs and data blobs into different pack
files, so we'll end up with pack files that either only contain data or
trees. This is in preparation to adding a cache (#1040), because
tree-only pack files can easily be cached later on.
This commit is contained in:
Alexander Neumann
2017-07-16 20:16:02 +02:00
parent db0e3cd772
commit 3541d06d07
3 changed files with 39 additions and 20 deletions

View File

@@ -72,7 +72,7 @@ func fillPacks(t testing.TB, rnd *randReader, be Saver, pm *packerManager, buf [
l := rnd.rand.Intn(1 << 20)
seed := rnd.rand.Int63()
packer, err := pm.findPacker(uint(l))
packer, err := pm.findPacker()
if err != nil {
t.Fatal(err)
}