commit 7d535ea29f19b75745cd79c6656f9d7292bb8427 Author: Karsten Loesing karsten.loesing@gmx.net Date: Wed May 9 11:40:59 2012 +0200
Suspend parsing .gz-compressed assignment files.
This is a temporary workaround for #5792. --- .../ernie/db/BridgePoolAssignmentsProcessor.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/ernie/db/BridgePoolAssignmentsProcessor.java b/src/org/torproject/ernie/db/BridgePoolAssignmentsProcessor.java index f43723f..d2e64ec 100644 --- a/src/org/torproject/ernie/db/BridgePoolAssignmentsProcessor.java +++ b/src/org/torproject/ernie/db/BridgePoolAssignmentsProcessor.java @@ -33,7 +33,7 @@ public class BridgePoolAssignmentsProcessor { File file = files.pop(); if (file.isDirectory()) { files.addAll(Arrays.asList(file.listFiles())); - } else { + } else if (!file.getName().endsWith(".gz")) { assignmentFiles.add(file); } } @@ -45,6 +45,8 @@ public class BridgePoolAssignmentsProcessor { new SimpleDateFormat("yyyy/MM/dd/yyyy-MM-dd-HH-mm-ss"); filenameFormat.setTimeZone(TimeZone.getTimeZone("UTC")); for (File assignmentFile : assignmentFiles) { + logger.info("Processing bridge pool assignment file '" + + assignmentFile.getAbsolutePath() + "'..."); try { BufferedReader br = null; if (assignmentFile.getName().endsWith(".gz")) {
tor-commits@lists.torproject.org