[tor-commits] [collector/master] Only consider recent relay descriptors in reference checker.
karsten at torproject.org
karsten at torproject.org
Mon Jul 10 08:57:32 UTC 2017
commit de69bd5e309089da1ce0eef91c721e4dbfe2c816
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Fri Jul 7 16:17:26 2017 +0200
Only consider recent relay descriptors in reference checker.
This patch reverts a path change made in 8767c73.
Fixes #22754.
---
CHANGELOG.md | 3 +++
src/main/java/org/torproject/collector/relaydescs/ArchiveWriter.java | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 13fade3..0805d48 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,9 @@
- Clean up files in recent/exit-lists/ again.
- Retain padding-counts lines in sanitized extra-info descriptors.
+ * Minor changes
+ - Only consider recent relay descriptors in reference checker.
+
# Changes in version 1.1.2 - 2017-01-17
diff --git a/src/main/java/org/torproject/collector/relaydescs/ArchiveWriter.java b/src/main/java/org/torproject/collector/relaydescs/ArchiveWriter.java
index bf9e79b..6660213 100644
--- a/src/main/java/org/torproject/collector/relaydescs/ArchiveWriter.java
+++ b/src/main/java/org/torproject/collector/relaydescs/ArchiveWriter.java
@@ -189,7 +189,7 @@ public class ArchiveWriter extends CollecTorMain {
this.saveDescriptorDigests();
- new ReferenceChecker(recentPath.toFile(),
+ new ReferenceChecker(Paths.get(recentPathName, RELAY_DESCRIPTORS).toFile(),
new File(statsDir, "references"),
new File(statsDir, "references-history")).check();
CollecTorMain.checkAvailableSpace(recentPath);
More information about the tor-commits
mailing list