forked from Qortal/qortal
Missed a few topOnly references from the last commit.
This commit is contained in:
parent
ea92ccb4c1
commit
1f8fbfaa24
@ -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();
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user