MCPcopy Create free account
hub / github.com/documentdb/documentdb / PgbsonWriterEndDocument

Function PgbsonWriterEndDocument

pg_documentdb_core/src/io/pgbson.c:1243–1252  ·  view source on GitHub ↗

* Ends writing a document written with "Start document" to the current writer. */

Source from the content-addressed store, hash-verified

1241 * Ends writing a document written with "Start document" to the current writer.
1242 */
1243void
1244PgbsonWriterEndDocument(pgbson_writer *writer, pgbson_writer *childWriter)
1245{
1246 if (!bson_append_document_end(&(writer->innerBson), &(childWriter->innerBson)))
1247 {
1248 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg(
1249 "adding EndDocument value: failed due to value being too large"))
1250 );
1251 }
1252}
1253
1254
1255/*

Callers 15

UpdateClusterMetadataFunction · 0.85
WriteShardMapFunction · 0.85
CheckIndisvalidFunction · 0.85
AddIndexBuildsFunction · 0.85
connection_statusFunction · 0.85
MakeBuildIndexesMsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected