Small fixes in backup engine
This commit is contained in:
parent
dcfbb3e06a
commit
c02763beea
@ -102,7 +102,7 @@ public abstract class BackupCleaner implements UnaryOperator<TreeSet<LocalDateTi
|
|||||||
|
|
||||||
Chat c = text("[Backup] ")
|
Chat c = text("[Backup] ")
|
||||||
.then(text(compressDisplayName).gray())
|
.then(text(compressDisplayName).gray())
|
||||||
.thenText(testOnly ? " Archive cleanup debug (no files are actually deleted):" : "Deleted archive files:\n");
|
.thenText(testOnly ? " Archive cleanup debug (no files are actually deleted):\n" : " Deleted archive files:\n");
|
||||||
boolean oneDeleted = false;
|
boolean oneDeleted = false;
|
||||||
for (Entry<LocalDateTime, File> datedFile : datedFiles.entrySet()) {
|
for (Entry<LocalDateTime, File> datedFile : datedFiles.entrySet()) {
|
||||||
if (keptFiles.contains(datedFile.getKey())) {
|
if (keptFiles.contains(datedFile.getKey())) {
|
||||||
|
@ -133,8 +133,9 @@ public abstract class CompressProcess implements Comparable<CompressProcess>, Ru
|
|||||||
PerformanceAnalysisManager.getInstance().removeBossBar(bossBar);
|
PerformanceAnalysisManager.getInstance().removeBossBar(bossBar);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} finally {
|
} catch (Throwable t) {
|
||||||
backupManager.compressRunning.set(null);
|
backupManager.compressRunning.set(null);
|
||||||
|
throw t;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user