| 4959 | } |
| 4960 | |
| 4961 | static 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 | |
| 4981 | static 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) |
no test coverage detected