Don't fake indexes for stopped repos
This commit is contained in:
parent
2ffa92ba1b
commit
2b536de37f
@ -483,7 +483,13 @@ nextRepo:
|
|||||||
// start needing a bunch of files which are nowhere to be found. This
|
// start needing a bunch of files which are nowhere to be found. This
|
||||||
// needs to be changed when we correctly do persistent indexes.
|
// needs to be changed when we correctly do persistent indexes.
|
||||||
for _, repoCfg := range cfg.Repositories {
|
for _, repoCfg := range cfg.Repositories {
|
||||||
|
if repoCfg.Invalid != "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
for _, node := range repoCfg.NodeIDs() {
|
for _, node := range repoCfg.NodeIDs() {
|
||||||
|
if node == myID {
|
||||||
|
continue
|
||||||
|
}
|
||||||
m.Index(node, repoCfg.ID, nil)
|
m.Index(node, repoCfg.ID, nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user