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

Function discard_writer_output

internal/cbm/sqlite_writer.c:1761–1770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759}
1760
1761static int discard_writer_output(write_db_ctx_t *w, int rc) {
1762 if (w->fp) {
1763 (void)fclose(w->fp);
1764 w->fp = NULL;
1765 }
1766 if (w->temp_path[0]) {
1767 (void)cbm_unlink(w->temp_path);
1768 }
1769 return rc;
1770}
1771
1772static int publish_writer_output(write_db_ctx_t *w) {
1773 if (sync_writer_output(w->fp) != 0) {

Callers 3

publish_writer_outputFunction · 0.85
write_db_after_nodesFunction · 0.85
cbm_writer_finalizeFunction · 0.85

Calls 1

cbm_unlinkFunction · 0.85

Tested by

no test coverage detected