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

Function exporting_index_callback

tests/test_watcher.c:1754–1764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1752static const char *exporting_index_db_path = NULL;
1753static int exporting_index_export_rc = 0;
1754static int exporting_index_callback(const char *name, const char *path, void *ud) {
1755 (void)ud;
1756 index_call_count++;
1757 /* What the daemon's index worker does after publish: export_after_publish
1758 * re-exports FAST because cbm_artifact_exists(root). */
1759 int rc = cbm_artifact_export(exporting_index_db_path, path, name, CBM_ARTIFACT_FAST);
1760 if (rc != 0) {
1761 exporting_index_export_rc = rc;
1762 }
1763 return 0;
1764}
1765
1766TEST(watcher_own_artifact_export_does_not_retrigger_issue1953) {
1767 char tmpdir[256];

Callers

nothing calls this directly

Calls 1

cbm_artifact_exportFunction · 0.85

Tested by

no test coverage detected