Missed a few topOnly references from the last commit.

This commit is contained in:
CalDescent 2021-10-02 15:34:55 +01:00
parent ea92ccb4c1
commit 1f8fbfaa24
3 changed files with 4 additions and 5 deletions

View File

@ -35,8 +35,7 @@ public class PruneManager {
public void start() {
this.executorService = Executors.newCachedThreadPool(new DaemonThreadFactory());
if (Settings.getInstance().isTopOnly() &&
!Settings.getInstance().isArchiveEnabled()) {
if (Settings.getInstance().isTopOnly()) {
// Top-only-sync
this.startTopOnlySyncMode();
}

View File

@ -328,10 +328,10 @@ public class Bootstrap {
}
private String getFilename() {
boolean pruningEnabled = Settings.getInstance().isTopOnly();
boolean isTopOnly = Settings.getInstance().isTopOnly();
boolean archiveEnabled = Settings.getInstance().isArchiveEnabled();
if (pruningEnabled) {
if (isTopOnly) {
return "bootstrap-toponly.7z";
}
else if (archiveEnabled) {

View File

@ -79,7 +79,7 @@ public abstract class RepositoryManager {
}
public static boolean prune(Repository repository) {
// Bulk prune the database the first time we use pruning mode
// Bulk prune the database the first time we use top-only or block archive mode
if (Settings.getInstance().isTopOnly() ||
Settings.getInstance().isArchiveEnabled()) {
if (RepositoryManager.canArchiveOrPrune()) {