Don't fake indexes for stopped repos

This commit is contained in:
Jakob Borg 2014-09-01 17:48:39 +02:00
parent 2ffa92ba1b
commit 2b536de37f

View File

@ -483,7 +483,13 @@ nextRepo:
// start needing a bunch of files which are nowhere to be found. This
// needs to be changed when we correctly do persistent indexes.
for _, repoCfg := range cfg.Repositories {
if repoCfg.Invalid != "" {
continue
}
for _, node := range repoCfg.NodeIDs() {
if node == myID {
continue
}
m.Index(node, repoCfg.ID, nil)
}
}