PackConfig can be constructed from the repo or from a config. While
browing the code, it is easier to follow the provenance of the
configuration when using the repository constructor.
Use the PackConfig(Repository) constructor in the
DfsInserter. Internally it calls PackConfig(repo.getConfig()) so this
should be a noop.
Change-Id: Ifce5bc87404ca8ec9a821d28253d489056faad9a
*/
protected DfsInserter(DfsObjDatabase db) {
this.db = db;
- PackConfig pc = new PackConfig(db.getRepository().getConfig());
+ PackConfig pc = new PackConfig(db.getRepository());
this.minBytesForObjectSizeIndex = pc.getMinBytesForObjSizeIndex();
}