@ -33,9 +33,9 @@ public class HSQLDBDatabaseArchiving {
public static boolean buildBlockArchive ( Repository repository , long fileSizeTarget ) throws DataException {
public static boolean buildBlockArchive ( Repository repository , long fileSizeTarget ) throws DataException {
// Only build the archive if we have never done so befor e
// Only build the archive if we haven't already got one that is up to dat e
int archiveHeight = repository . getBlockArchiveRepository ( ) . getBlockArchiveHeight ( ) ;
boolean upToDate = BlockArchiveWriter . isArchiverUpToDate ( repository ) ;
if ( archiveHeight > 0 ) {
if ( upToDate ) {
// Already archived
// Already archived
return false ;
return false ;
}
}