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

Function sync_writer_output

internal/cbm/sqlite_writer.c:1794–1803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792}
1793
1794static int sync_writer_output(FILE *fp) {
1795 if (fflush(fp) != 0) {
1796 return ERR_WRITE_FAILED;
1797 }
1798#ifdef _WIN32
1799 return _commit(_fileno(fp)) == 0 ? 0 : ERR_WRITE_FAILED;
1800#else
1801 return fsync(fileno(fp)) == 0 ? 0 : ERR_WRITE_FAILED;
1802#endif
1803}
1804
1805static int discard_writer_output(write_db_ctx_t *w, int rc) {
1806 /* Cleanup runs after the failure that brought us here, and a library

Callers 1

publish_writer_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected