[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-db/master] Only include active descriptor sinks in rsync/.



commit f4c952bc8c4dc98ce52e72ff877aa8efd6c94567
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Thu May 31 15:16:32 2012 +0200

    Only include active descriptor sinks in rsync/.
---
 src/org/torproject/ernie/db/Main.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/org/torproject/ernie/db/Main.java b/src/org/torproject/ernie/db/Main.java
index dcb2800..c0f100a 100644
--- a/src/org/torproject/ernie/db/Main.java
+++ b/src/org/torproject/ernie/db/Main.java
@@ -146,11 +146,11 @@ public class Main {
     // be served via rsync.
     if (config.getProvideFilesViaRsync()) {
       new RsyncDataProvider(
-          config.getDirectoryArchivesOutputDirectory() == null ? null :
+          !config.getWriteDirectoryArchives() ? null :
           new File(config.getDirectoryArchivesOutputDirectory()),
-          config.getSanitizedBridgesWriteDirectory() == null ? null :
+          !config.getWriteSanitizedBridges() ? null :
           new File(config.getSanitizedBridgesWriteDirectory()),
-          config.getSanitizedAssignmentsDirectory() == null ? null :
+          !config.getProcessBridgePoolAssignments() ? null :
           new File(config.getSanitizedAssignmentsDirectory()),
           config.getDownloadExitList(),
           !config.getDownloadGetTorStats() ? null :

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits