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

[tor-commits] [collector/master] Only clean up a single time during sync.



commit 5e5a7d1dfa30ffaf0a27ea4e246de5bef30d1cbc
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Fri Dec 11 16:55:58 2020 +0100

    Only clean up a single time during sync.
---
 src/main/java/org/torproject/metrics/collector/sync/SyncManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/torproject/metrics/collector/sync/SyncManager.java b/src/main/java/org/torproject/metrics/collector/sync/SyncManager.java
index 1fa1347..8e9c7d3 100644
--- a/src/main/java/org/torproject/metrics/collector/sync/SyncManager.java
+++ b/src/main/java/org/torproject/metrics/collector/sync/SyncManager.java
@@ -108,11 +108,11 @@ public class SyncManager {
 
           persist.storeDesc(desc, collectionDate.getTime());
         }
-        persist.cleanDirectory();
         descriptorReader.saveHistoryFile(historyFile);
       }
       logger.info("Done merging {} from {}.", marker, source.getHost());
     }
+    persist.cleanDirectory();
   }
 
 }

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