MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ej_join_df

Function ej_join_df

src/pipeline/pass_envjoin.c:395–404  ·  view source on GitHub ↗

Join one setter with the readers of its key in Dockerfile `df`'s image. */

Source from the content-addressed store, hash-verified

393
394/* Join one setter with the readers of its key in Dockerfile `df`'s image. */
395static void ej_join_df(ej_t *j, int64_t setter, const char *key, const char *df) {
396 const ej_set_t *s = df && df[0] ? cbm_ht_get(j->sets, df) : NULL;
397 const ej_reader_t *rs = s ? cbm_ht_get(j->readers, key) : NULL;
398 intptr_t n = rs ? (intptr_t)cbm_ht_get(j->nreaders, key) : 0;
399 for (intptr_t i = 0; i < n; i++) {
400 if (ej_in_image(s, rs[i].file)) {
401 ej_edge(j, setter, &rs[i], s);
402 }
403 }
404}
405
406/* A scoped EnvVar: its owner, container and key from the QN. */
407static void ej_join_setter(ej_t *j, const cbm_gbuf_node_t *ev) {

Callers 1

ej_join_setterFunction · 0.85

Calls 3

cbm_ht_getFunction · 0.85
ej_in_imageFunction · 0.85
ej_edgeFunction · 0.85

Tested by

no test coverage detected