MCPcopy Create free account
hub / github.com/apache/cloudberry / write_item

Function write_item

src/backend/utils/cache/relcache.c:6757–6764  ·  view source on GitHub ↗

write a chunk of data preceded by its length */

Source from the content-addressed store, hash-verified

6755
6756/* write a chunk of data preceded by its length */
6757static void
6758write_item(const void *data, Size len, FILE *fp)
6759{
6760 if (fwrite(&len, 1, sizeof(len), fp) != sizeof(len))
6761 elog(FATAL, "could not write init file");
6762 if (len > 0 && fwrite(data, 1, len, fp) != len)
6763 elog(FATAL, "could not write init file");
6764}
6765
6766/*
6767 * Determine whether a given relation (identified by OID) is one of the ones

Callers 1

write_relcache_init_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected