Skip to content
Snippets Groups Projects
Commit e4362658 authored by iwakeh's avatar iwakeh
Browse files

Solves task-19913: clean-up after each ArchiveWriter run.

parent 8393774e
Branches task-19913
No related tags found
No related merge requests found
......@@ -195,6 +195,18 @@ public class ArchiveWriter extends CollecTorMain {
new File(statsDir, "references"),
new File(statsDir, "references-history")).check();
CollecTorMain.checkAvailableSpace(recentPath);
cleanUp();
}
private void cleanUp() {
this.expectedVotes.clear();
this.intermediateStats = new StringBuilder();
this.storedConsensuses.clear();
this.storedMicrodescConsensuses.clear();
this.storedVotes.clear();
this.storedServerDescriptors.clear();
this.storedExtraInfoDescriptors.clear();
this.storedMicrodescriptors.clear();
}
private void loadDescriptorDigests() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment