@ -486,7 +486,12 @@ public class DfsGarbageCollector {
return newPackDesc ;
return newPackDesc ;
}
}
/** @return statistics corresponding to the {@link #getNewPacks()}. */
/ * *
* @return statistics corresponding to the { @link # getNewPacks ( ) } .
*
* < p > The elements can be null if the stat is not available for the pack
* file .
* /
public List < PackStatistics > getNewPackStatistics ( ) {
public List < PackStatistics > getNewPackStatistics ( ) {
return newPackStats ;
return newPackStats ;
}
}
@ -637,7 +642,6 @@ public class DfsGarbageCollector {
ProgressMonitor pm , long estimatedPackSize ) throws IOException {
ProgressMonitor pm , long estimatedPackSize ) throws IOException {
DfsPackDescription pack = repo . getObjectDatabase ( ) . newPack ( source ,
DfsPackDescription pack = repo . getObjectDatabase ( ) . newPack ( source ,
estimatedPackSize ) ;
estimatedPackSize ) ;
newPackDesc . add ( pack ) ;
if ( source = = GC & & reftableConfig ! = null ) {
if ( source = = GC & & reftableConfig ! = null ) {
writeReftable ( pack ) ;
writeReftable ( pack ) ;
@ -671,6 +675,7 @@ public class DfsGarbageCollector {
PackStatistics stats = pw . getStatistics ( ) ;
PackStatistics stats = pw . getStatistics ( ) ;
pack . setPackStats ( stats ) ;
pack . setPackStats ( stats ) ;
pack . setLastModified ( startTimeMillis ) ;
pack . setLastModified ( startTimeMillis ) ;
newPackDesc . add ( pack ) ;
newPackStats . add ( stats ) ;
newPackStats . add ( stats ) ;
newPackObj . add ( pw . getObjectSet ( ) ) ;
newPackObj . add ( pw . getObjectSet ( ) ) ;
return pack ;
return pack ;
@ -680,6 +685,7 @@ public class DfsGarbageCollector {
if ( reftableConfig ! = null ) {
if ( reftableConfig ! = null ) {
DfsPackDescription pack = objdb . newPack ( GC ) ;
DfsPackDescription pack = objdb . newPack ( GC ) ;
newPackDesc . add ( pack ) ;
newPackDesc . add ( pack ) ;
newPackStats . add ( null ) ;
writeReftable ( pack ) ;
writeReftable ( pack ) ;
}
}
}
}