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

Function frozen_before_commit

src/pipeline/pipeline.c:4961–4979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4959}
4960
4961static cbm_pipeline_frozen_status_t frozen_before_commit(cbm_pipeline_t *p, const char *stage) {
4962 if (check_cancel(p))
4963 return CBM_PIPELINE_FROZEN_CANCELLED;
4964 if (seal_staging_db(stage) != 0)
4965 return CBM_PIPELINE_FROZEN_IO;
4966 if (p->before_publish_hook)
4967 p->before_publish_hook(p, stage, p->before_publish_hook_ctx);
4968 if (check_cancel(p))
4969 return CBM_PIPELINE_FROZEN_CANCELLED;
4970 if (seal_staging_db(stage) != 0)
4971 return CBM_PIPELINE_FROZEN_IO;
4972 cbm_pipeline_frozen_status_t status = frozen_reconcile(p);
4973 if (status != CBM_PIPELINE_FROZEN_OK)
4974 return status;
4975 status = frozen_check_directories(p->frozen, false);
4976 if (status != CBM_PIPELINE_FROZEN_OK)
4977 return status;
4978 return check_cancel(p) ? CBM_PIPELINE_FROZEN_CANCELLED : frozen_diagnostic_status(p);
4979}
4980
4981static cbm_pipeline_frozen_status_t frozen_commit(cbm_pipeline_t *p, const char *stage) {
4982 int rc = p->rename_hook ? p->rename_hook(stage, p->db_path, p->rename_hook_ctx)

Callers 1

frozen_build_lockedFunction · 0.85

Calls 5

check_cancelFunction · 0.85
seal_staging_dbFunction · 0.85
frozen_reconcileFunction · 0.85
frozen_check_directoriesFunction · 0.85
frozen_diagnostic_statusFunction · 0.85

Tested by

no test coverage detected