summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2017-12-13 09:21:49 +0100
committerHarald Musum <musum@oath.com>2017-12-13 09:21:49 +0100
commite6f5fb49800af3c68a62c08abb6a5b251c2c3d1e (patch)
tree2b4412121d77827e765afa1b12980478e9d6979b /config-model
parent35ce8cf9c5dea5c700315cb4d8031b533c8e535d (diff)
Notify config proxy about starting downloads while preparing
Code not activated yet
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java b/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java
index f6cc9203d00..8fcece3aa80 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/filedistribution/FileDistributor.java
@@ -9,13 +9,10 @@ import com.yahoo.vespa.model.Host;
import java.util.*;
import java.util.stream.Collectors;
-import static java.util.Arrays.asList;
-
-
/**
* Responsible for directing distribution of files to hosts.
*
- * @author tonytv
+ * @author Tony Vaagenes
*/
public class FileDistributor {
@@ -99,6 +96,7 @@ public class FileDistributor {
for (Host host : getTargetHosts()) {
if ( ! host.getHostName().equals(fileSourceHost)) {
dbHandler.sendDeployedFiles(host.getHostName(), filesToSendToHost(host));
+ dbHandler.startDownload(host.getHostName(), filesToSendToHost(host));
}
}
dbHandler.sendDeployedFiles(fileSourceHost, allFilesToSend());