bson_writer_rollback man page

bson_writer_rollback() — Abort the appending of the current bson_t to the memory region managed by writer. This is useful if you detected that you went past a particular memory limit. For example, MongoDB has 48MB message limits.

Synopsis

void
bson_writer_rollback (bson_writer_t *writer);

Parameters

writer
A bson_writer_t

Description

Abort the appending of the current bson_t to the memory region managed by writer

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Referenced By

bson_writer_begin(3), bson_writer_get_length(3).

2016‐10‐28 libbson