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

Function PgbsonArrayWriterEndDocument

pg_documentdb_core/src/io/pgbson.c:1278–1289  ·  view source on GitHub ↗

* Ends writing the document written with the StartDocument in an array. */

Source from the content-addressed store, hash-verified

1276 * Ends writing the document written with the StartDocument in an array.
1277 */
1278void
1279PgbsonArrayWriterEndDocument(pgbson_array_writer *writer, pgbson_writer *childWriter)
1280{
1281 if (!bson_append_document_end(&(writer->innerBson), &(childWriter->innerBson)))
1282 {
1283 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg(
1284 "adding ArrayWriterEndDocument value: failed due to value being too large"))
1285 );
1286 }
1287
1288 writer->index++;
1289}
1290
1291
1292/*

Callers 15

WriteShardListFunction · 0.85
CurrentOpWorkerCoreFunction · 0.85
BuildResponseMessageFunction · 0.85
connection_statusFunction · 0.85
WriteRolesFunction · 0.85
WriteRoleResponseFunction · 0.85
GenerateIndexExprStrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected