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() {
|
public void start() {
|
||||||
this.executorService = Executors.newCachedThreadPool(new DaemonThreadFactory());
|
this.executorService = Executors.newCachedThreadPool(new DaemonThreadFactory());
|
||||||
|
|
||||||
if (Settings.getInstance().isTopOnly() &&
|
if (Settings.getInstance().isTopOnly()) {
|
||||||
!Settings.getInstance().isArchiveEnabled()) {
|
|
||||||
// Top-only-sync
|
// Top-only-sync
|
||||||
this.startTopOnlySyncMode();
|
this.startTopOnlySyncMode();
|
||||||
}
|
}
|
||||||
|
@ -328,10 +328,10 @@ public class Bootstrap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getFilename() {
|
private String getFilename() {
|
||||||
boolean pruningEnabled = Settings.getInstance().isTopOnly();
|
boolean isTopOnly = Settings.getInstance().isTopOnly();
|
||||||
boolean archiveEnabled = Settings.getInstance().isArchiveEnabled();
|
boolean archiveEnabled = Settings.getInstance().isArchiveEnabled();
|
||||||
|
|
||||||
if (pruningEnabled) {
|
if (isTopOnly) {
|
||||||
return "bootstrap-toponly.7z";
|
return "bootstrap-toponly.7z";
|
||||||
}
|
}
|
||||||
else if (archiveEnabled) {
|
else if (archiveEnabled) {
|
||||||
|
@ -79,7 +79,7 @@ public abstract class RepositoryManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean prune(Repository repository) {
|
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() ||
|
if (Settings.getInstance().isTopOnly() ||
|
||||||
Settings.getInstance().isArchiveEnabled()) {
|
Settings.getInstance().isArchiveEnabled()) {
|
||||||
if (RepositoryManager.canArchiveOrPrune()) {
|
if (RepositoryManager.canArchiveOrPrune()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user