]> source.dussan.org Git - jgit.git/commit
Simplfy caching of DfsPackDescription from PackWriter.Statistics 78/11178/2
authorShawn Pearce <spearce@spearce.org>
Thu, 14 Mar 2013 23:10:44 +0000 (16:10 -0700)
committerShawn Pearce <spearce@spearce.org>
Thu, 14 Mar 2013 23:36:04 +0000 (16:36 -0700)
commitfc6b898cbe4f0c13026c30e57a4882689a1c49b9
tree47ef4e42c0f7bda57a4e837155c73cac4535a353
parent8e2a24a3b636d22a973e89763b5dbf11ec0d6821
Simplfy caching of DfsPackDescription from PackWriter.Statistics

Let the pack description copy the relevant stats values. This
moves it out of the garbage collector and compactor algorithms,
co-locating with something that might care.

Remove some unnecessary code from the DfsPackCompactor, the stats
tracks the same information and can supply it.

Change-Id: Id64ab38d507c0ed19ae0d106862d175b7364eba3
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackCompactor.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackDescription.java