6221: Generate trash list, not sent to keep servers yet.
[arvados.git] / services / datamanager / datamanager.go
index 91612668b538b8a045277a72eabe18c5be09f733..2078edcdaaee5495263cda1cb064c8d540ace5db 100644 (file)
@@ -125,9 +125,14 @@ func singlerun() {
                replicationSummary.UnderReplicatedBlocks)
 
        pullLists := summary.BuildPullLists(pullServers)
+       trashLists := summary.BuildTrashLists(kc,
+               &keepServerInfo,
+               replicationSummary.KeepBlocksNotInCollections)
 
        summary.WritePullLists(arvLogger, pullLists)
 
+       summary.WriteTrashLists(arvLogger, trashLists)
+
        // Log that we're finished. We force the recording, since go will
        // not wait for the write timer before exiting.
        if arvLogger != nil {