H5 (review r2, A-308, A-312): the shadow watches no indexer modules; it reads the entries its wants name and asks the verb module for a module a candidate adds
Builds: design 47 G §421, §628
This commit is contained in:
@@ -198,6 +198,11 @@ type Composer struct {
|
||||
keptWantVal map[string]keptWant
|
||||
keptWants map[string]bool
|
||||
keptWrite sync.Mutex
|
||||
// forCandidates marks the shadow's composers: they read the catalog half's entries for the modules their wants name (§421) and, for
|
||||
// a candidate's own builds, the manifests and verdicts of the indexer that compose-candidate alone keeps (§628, A-308).
|
||||
forCandidates bool
|
||||
// addedFps are the builds of modules a candidate adds that the shadow asked the entry of (addedModule), kept beside the wants' under mu.
|
||||
addedFps map[string]bool
|
||||
// modulesRev is the revision of the last update of the indexer's modules taken: where the picture of them stands.
|
||||
modulesRev uint64
|
||||
// heard is, by node and module, what each node's event running last said it runs, kept from the seat's stream by this
|
||||
@@ -1631,7 +1636,7 @@ func (r reader) Manifest(ctx context.Context, digest string) ([]byte, error) {
|
||||
if ok {
|
||||
return raw, nil
|
||||
}
|
||||
if r.c.byEntries() {
|
||||
if r.c.byEntries() && !r.c.forCandidates {
|
||||
return nil, fmt.Errorf("the catalog half's entries hold no manifest %s", digest)
|
||||
}
|
||||
key, err := meshcatalogclient.ManifestsKey(digest)
|
||||
@@ -1655,7 +1660,7 @@ func (r reader) Manifest(ctx context.Context, digest string) ([]byte, error) {
|
||||
}
|
||||
|
||||
func (r reader) Build(ctx context.Context, module, fp string) (*builds.BuilderBuild, error) {
|
||||
if r.c.byEntries() {
|
||||
if r.c.byEntries() && !r.c.forCandidates {
|
||||
return r.c.buildOf(module, fp), nil
|
||||
}
|
||||
key, err := builds.BuilderBuildKey(module, fp)
|
||||
|
||||
Reference in New Issue
Block a user